home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
ENVEDIT1.ZIP
/
ENVEDIT.DOC
< prev
Wrap
Text File
|
1990-10-14
|
8KB
|
178 lines
10/15/90
Page 1 of 3
OS/2 ENVIRONMENT EDITOR
OVERVIEW
ENVEDIT allows you to view and modify the Environment variables
(entries) in OS/2. The program is for use when you need to change
one or more of your environment entries and don't want to re-type
them from the command line. ENVEDIT is fast and easy to use and
runs as an OS/2 Full Screen application.
ENVEDIT reads all modifiable OS/2 environment entries from the
session the program was run in, then produces a Selector ListBox
with all of the Entry names and an Edit/View Box to modify or view
an entry. Cursor keys are used to move the selector, as the
selector is moved entries are highlighted and the corresponding
definition is displayed. Entries are selected for editing by
pressing the Enter key while the entry is highlighted.
Once in the editor, the entry may be modified. ENVEDIT has a built
in editor that supports the cursor keys, Insert Mode, Delete, and
Destructive Backspace. To accept the changes, press enter and the
control returns to the ListBox.
ENVEDIT makes the actual changes to the environment after it is
terminated. This is so the changes stick, that is to say, while the
program is running any changes to the environment would apply only
to the shell that the program was running in and when the program
ends so does the shell and the modified environment.
ENVEDIT produces a temporary command file that it calls after the
environment editor has been run. The command file contains the OS/2
SET commands necessary to make the requested changes. Once the
temporary file is run, it's deleted and the process completed by
running SET so you can verify the changes.
INSTALLATION
1. Copy ENVEDIT.CMD & ENV.EXE to a sub-dir in your path.
ie. C:\COPY A:\ENV.EXE C:\OS2
C:\COPY A:\ENVEDIT.CMD C:\OS2
2. That's it unless you want to hook it into a Group Menu. In this
case the files may reside anywhere, just make sure that the
Working Directory in 'Properties' is set to the drive and
sub-dir that has ENV.EXE.
Note : The program creates a temporary file called !TMP!--!.CMD in
the 'C:' root directory. The file is automatically created
and deleted by ENVEDIT.CMD. Obviously, if you have a file by
that name you'll want to rename it before running
ENVEDIT.CMD or ENV.EXE.
ALL RIGHTS RESERVED (C) 1990 - CWJ
10/15/90
Page 2 of 3
OS/2 ENVIRONMENT EDITOR
OPERATION
To run ENVEDIT enter ENVEDIT on the command line or select from
Group menu.
ie. D:\ENVEDIT <enter>
Selector Menu Operation
The program starts by showing you all of the Entries available for
editing. The first entry will be highlighted and it's definition
displayed in the Edit/View Box.
1. Use the Cursor arrows, home & end to highlight the entry you
want to change. As you move the selector, the definition in
the Edit/View Box will change to allow you to see what the
highlighted entry definition is.
2. Once the entry you want to modify is highlighted, press ENTER.
At this point the cursor will be positioned in the Edit/View
box on the first character of the definition.
3. Use editor features to modify the definition.
(See list below.)
4. To accept the changes, press ENTER and control will return to
the Selection Menu.
To reject the changes, press Escape, control returns to the
Selection Menu.
5. To Quit, press Escape.
If you accepted the changes in Step 4. ENVEDIT will ask if
you want to make the changes to the environment.
Press - 'Y' to make the changes, 'N' to ignore changes.
6. If changes were made, a message is displayed and SET is run.
If no changes were made a message is displayed.
USAGE NOTES
Although ENVEDIT was not intended for adding new entries, using
SET from the command line is typically easier, it can be done in
the edit box by overwritting the 'ENTRY=' portion and adding the
definition you need.
ENV.EXE may be called directly from the command line to create
the temporary command file, without running it or deleting it.
This can be useful if you want to keep the command file for
future use. Remember to rename it to something other than
!TMP!--!.CMD or it will be erased the next time ENVEDIT is run.
ALL RIGHTS RESERVED (C) 1990 - CWJ
10/15/90
Page 3 of 3
OS/2 ENVIRONMENT EDITOR
EDITOR COMMANDS
Enter - Accept any changes made and return to the Selection
Menu. The program does not determine if anything
was actually changed, pressing enter signifies that
changes may have been made and you'll be prompted
on exiting to see if you want the changes applied.
Escape - Ignores any changes made to the current definition
and returns control to the Selection Menu. The
definition display is also restored.
Cursor Keys - UP/DOWN/LEFT/RIGHT move cursor 1 position in the
direction indicated.
HOME/END goes to the first or last character.
CONTROL-END goes to the end of the current line.
Delete Key - Deletes the character under cursor and drags the
remainder of the line one position to the left.
Insert Key - Toggles Insert mode on and off. If Insert is On
the cursor will grow to half a character, if it's
Off the cursor will sit just under the character.
With Insert On, characters typed are inserted to
the right of the cursor position and the remainder
of the line is moved to the right one position.
The cursor does not move during insert.
Insert Off is Overstrike, characters typed replace
the characters at the cursor position. Cursor
advances one position per character typed.
LICENSE - ENVEDIT.CMD & ENV.EXE may be used and distributed
at no cost for non-commerical purposes.
Commericial Use : $10.00/Copy.
$100.00 Unlimited Internal Use.
Send Check to : Bill James
13540 Hubbard #33
Sylmar, CA 91342
EXPRESS WRITTEN PERMISSION REQUIRED FOR COMMERCIAL
DISTRIBUTION IN ANY FORM. THIS INCLUDES BUT IS NOT
LIMITED TO THE FOLLOWING : Distribution in package,
Distribution for ANY FEE including shipping, and
media cost.
ALL RIGHTS RESERVED (C) 1990 - CWJ