Chapter 11. Controlling Your Environment
Changing DOS Variables
The SET
command enables you to adjust the DOS environment by changing the variables that are available to programs running under DOS. This command shows the current settings in the environment, or you can use the command to add or change environment variables.
Issuing the SET
Command
The syntax for the SET
command is as follows:
SET name=string
The variable name
=
is the name of the environment variable. The most frequently used environment variables are COMSPEC
, PROMPT
, and PATH
. You can choose your own variable names in addition to these three, however. Many of the programs that you might use set their ...
Get Special Edition Using MS-DOS® 6.22, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.