beautypg.com

Avery Dennison 6037 Rev. AA 3/04 Programmer Manual User Manual

Page 82

background image

4-40 ROM-DOS Internal Commands

Example

s

IF ERRORLEVEL 15 GOTO EXIT

Will GOTO 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

Copies CONFIG.SYS to OLD if a file named OLD does not exist.