oem.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SET
Notes  Examples
────────────────────────────────────────────────────────────────────────────
 
                                    SET
 
Displays, sets, or removes MS-DOS environment variables.
 
You use environment variables to control the behavior of some batch files
and programs and to control the way MS-DOS appears and works. The SET
command is often used in the AUTOEXEC.BAT or CONFIG.SYS files to set
environment variables each time you start MS-DOS.
 
Syntax
 
    SET variable=[string]
 
To display the current environment settings, use the following syntax:
 
    SET
 
Parameters
 
variable
    Specifies the variable you want to set or modify.
 
string
    Specifies the string you want to associate with the specified variable.
 
Related Commands
 
For information about setting environment variables that MS-DOS uses to
control its own operations, see the <PATH>, <PROMPT>, <SHELL>, and <DIR>
commands.
 
                                      ♦