home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / batch / if / cond.hlp next >
Encoding:
Text File  |  1989-01-01  |  1.0 KB  |  18 lines

  1. condition can be one of:
  2. 1.  NOT <condition> which is true if and only if <condition> is false.
  3. 2.  EXIST [d:][pathname]filename[.ext] which is true if the specified file 
  4.     exists. Wildcards may be used. EXIST always fails for directory names.
  5.     (See the DIRECTORY_TESTS topic for some tests for directories.)
  6. 3.  string1==string2  which is true if string1 and string2 are identical. 
  7.     Strings can't have embedded special characters (like blank, > or <), 
  8.         but they can have embedded substitutable parameters (%1, or the like),
  9.     or environment variables (%PATH%, for example)!
  10. 4.  ERRORLEVEL n which is true only if the previous external command had an
  11.     an exit code of n or greater. Some DOS commands that set a value that
  12.     can be tested are BACKUP, RESTORE, and REPLACE. The values are:
  13.     0 - Normal Completion 
  14.     1 - No files found to backup/restore
  15.     2 - Some files not backed up/restored due to file sharing conflicts 
  16.     3 - Terminated by user (control break) 
  17.     4 - Terminated due to error 
  18.