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

Page 26

Advertising
background image

2-14 ROM-DOS 6.22 User Manual

7/9/98

When this is added at the end of the command line, ROM-DOS begins
to receive its instructions from the named file.

CAUTION

If input redirection is used and the input file is incomplete,

the system hangs waiting for instructions from the input file

and does not accept keystroke information from the keyboard

(except for <Ctrl><Alt><Del> to reboot).

Output Redirection

The syntax for redirecting output to a file is:

>

filespec

When this is added to the end of the command line, standard output is
temporarily directed to the file named in the filespec. If the named file
already exists, its contents are replaced with the ROM-DOS function's
output. Otherwise, a new file is created to hold the output. Output can
also be redirected to a device such as PRN (the printer).

To append output to the receiving file, rather than replace its contents,
the double right arrow (>>) is used:

>>

filespec

This adds the ROM-DOS function's output after the existing contents of
the named file. If the named file does not exist, ROM-DOS creates the
file.

Example

Suppose you wanted to save a list of the current directory into a file.
Normally, the command:

DIR

displays the directory list on your monitor.

Advertising