Setenv
Index Prev Next
Synopsis
NAME,SAVE/S,STRING/F
Function
Sets a global variable from the current shell. These variables can
be accessed from any program executing at any time.
These variables are usually not saved in the ENVARC: directory, hence they
can only be used by programs during the current execution of the
operating system. When using SAVE argument, the variable is also saved
in ENVARC:
If no parameters are specified, the current list of global variables
are displayed.
Result
Standard DOS error codes.
Example
Setenv EDITOR Ed
Any program that accesses the variable "EDITOR" will be able to
find out the name of the text-editor the user would like to use,
by examining the contents of the variable.