beautypg.com

Avery Dennison 6035 Programmer Manual Rev.A 7/98 User Manual

Page 126

background image

3-68 ROM-DOS 6.22 User Manual

7/9/98

IF (cont.)

Examples

IF ERRORLEVEL 15 GOTO :EXIT

Goes to the :EXIT label if the ERRORLEVEL was equal to or greater
than 15.

IF %1 == CONFIG.SYS PRINT %1

Prints the file stored as the %1 parameter only if its exact name is
CONFIG.SYS.

IF NOT EXIST OLD COPY CONFIG.SYS OLD

If there is not a file named OLD, this command copies CONFIG.SYS to
OLD.