home *** CD-ROM | disk | FTP | other *** search
- SAMPLE command and resulting output | Comments about the output
-
- SET
- PATH= This is the display for the default
- COMSPEC=A:\COMMAND.COM DOS environment variables.
-
-
- PATH C:\SYS We are setting a new PATH and one
- SET VAR1=7 environment variable VAR1.
- SET Note that the display has changed
- PATH=C:\SYS to reflect the new settings.
- COMSPEC=A:/COMMAND.COM
- VAR1=7
-
- SET NAME=Johnnie Boy After setting this environment
- variable, the command
- ECHO %NAME% is home
- in a BATCH file would display
- Johnnie Boy is home
- on the screen.
-
- @ECHO OFF If this were the contents of a BATCH
- SET %1= file called UNSET.BAT,
- EXIT UNSET NAME
- would remove the variable NAME from
- the environment space.