home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / batch / set / examples.hlp next >
Encoding:
Text File  |  1989-01-01  |  896 b   |  27 lines

  1. SAMPLE command and resulting output   | Comments about the output
  2.  
  3.   SET
  4. PATH=                    This is the display for the default
  5. COMSPEC=A:\COMMAND.COM            DOS environment variables.
  6.  
  7.  
  8.   PATH C:\SYS                We are setting a new PATH and one
  9.   SET VAR1=7                environment variable VAR1. 
  10.   SET                    Note that the display has changed 
  11. PATH=C:\SYS                to reflect the new settings.
  12. COMSPEC=A:/COMMAND.COM
  13. VAR1=7
  14.  
  15.   SET NAME=Johnnie Boy            After setting this environment 
  16.                     variable, the command
  17.                         ECHO %NAME% is home
  18.                     in a BATCH file would display 
  19.                         Johnnie Boy is home
  20.                     on the screen. 
  21.  
  22.   @ECHO OFF                If this were the contents of a BATCH
  23.   SET %1=                file called UNSET.BAT, 
  24.   EXIT                        UNSET NAME
  25.                     would remove the variable NAME from
  26.                     the environment space.
  27.