" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#008000" VLINK="004000" ALINK="#00C000">
SET COMMAND
Purpose: Allows to add a new character string to the environment of the
COMMAND.COM. All strings of the COMMAND.COM environment
become available to all commands and users' programs.
Syntax: SET [name=[parameter]]
Type: Internal command
Description:
The full string (beginning with a name) is written into the memory
block, reserved for the strings of the environment. During writing into the
environment all small letters of the string are changed into capital
letters; the remaining part of the string is copied without changes. If the
name already exists in the environment, then its value changes to a new
value of the parameter.
If the SET command is specified without a name, then all strings of
characters, being in the environment at the given moment will be displayed.
If you specify the name in the SET command but without parameter, the
last occurence of the string "name=parameter" will be deleted from the
environment.
The environment (a set of names with parameters) is available for all
DOS commands and users' programs.
Notes:
1. Having found any PROMPT or PATH command, DOS writes them automatically
into the environment.
2. One of the strings of the environment (written there after the DOS
system initialization) is the string COMSPEC=argument. This parameter
describes the path used by DOS for the second copy of COMMAND.COM, if
necessary.
3. A copy of the environment is stored after the execution of any resident
program. Resident programs (MODE, PRINT, GRAPHICS) should be called
before writing of long character strings of the environment.
Examples:
1. A>set pgms=\level1
This example sets the string PGMS=\LEVEL1 in the environment. Having
got the control, the application can find the name PGMS in the environment
and use the parameter as the directory of its files.
2. A>set pgms=
deletes the string PGMS=\LEVEL1 from the environment.
3. A>set abc=xyz
sets the string ABC=xyz to other existing in the environment strings. Pay
more attention to the change of small letters by capital ones. In this way
you can specify keywords and parameters, that have no meaning for DOS, but
can be used by application.