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

Page 165

Advertising
background image

7/9/98

ROM-DOS 6.22 Command Descriptions 3-107

SHIFT (cont.)

Examples

Command line argument:

TYPEIT autoexec.bat config.sys net.bat

TYPEIT.BAT batch file:

:repeat

if EXIST %1 goto doit

goto end

:doit

type %1

pause

shift

goto repeat

:end

@echo All Done

Reads in a list of files (provided as arguments on the command line)
and displays each one to the screen. After displaying each one, the
SHIFT command copies the next file in the argument list into the %1
slot, verifies the existence of the file and continues.

Advertising