beautypg.com

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

Page 29

background image

7/9/98

Using ROM-DOS 6.22 2-17

The parameter %1 takes on the name THISFILE.DAT and the batch file
actually executes the following:

PRINT THISFILE.DAT

COPY THISFILE.DAT \ARCHIVE\*.*

DEL THISFILE.DAT

Special Batch Subcommands

In addition to standard ROM-DOS commands that run in batch files,
there are also special batch subcommands, for use within batch files.
See CALL, ECHO, FOR, GOTO, IF, PAUSE, REM, and SHIFT in
Chapter 3.

Example

Runs a program called MY_INFO1 followed by a program called
MY_INFO2, each of which displays a screen full of information. After
running each of these programs, you clear the screen before
proceeding. Your normal keystroke sequence is:

MY_INFO1

CLS

MY_INFO2

CLS

You could create a batch file called INFO.BAT containing these lines:

MY_INFO1

PAUSE

CLS

MY_INFO2

PAUSE

CLS

Which is executed by simply typing:

INFO