Usage Notes for: ChDir.scr -- TE/2 Script Language Script File Copyright (C) 1991 Oberon Software, Mankato, MN Permission is granted to registered TE/2 users to use this script without restriction. If you modify this script and subsequently redistribute it, please note the modifications in the comment area. If you do redistribute this this script you must also provide the accompanying CHDIRSCR.DOC. Author: Brady Flowers Date: 2 June, 1991 This script will present the user with a dialog box which will display the Current Working Directory and prompt for a new directory. If the new path contains a drive indicator, the drive is changed also. The response is saved in a global buffer so that it is available for edit on the next invocation. Note that this script uses the System-Global variables DLogNormAttr, DLogEdAttr, and DLogEdHiAttr to make the coloring of the dialog and its edit field consistant with the dialogs in the rest of TE/2. To install this script, copy it into the directory containing all of your TE/2 script files (the "ScriptPath" setting from TE2.INI). To invoke this script from TE/2 terminal mode type Alt-/ and, at the "Command:" prompt type "call chdir". Better still, attach it to a function key! Do this by following the steps below. For example, to attach this script to the key Alt-F12, you would follow these steps: 1. Press Alt-K to get the function key menu 2. Move the highlight to "Alt" and press ENTER 3. Move the highlight to "F12" 4. Type "!call chdir" and press ENTER, the first menu reappears 5. Move the highlight to "Save" and press ENTER 6. Press ESCape to exit this menu From this point on, any time you press Alt-F12 while in terminal mode, this script will be automatically executed.