O'Reilly logo

Special Edition Using MS-DOS® 6.22, Third Edition by Jim Cooper

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required