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

7/9/98
ROM-DOS 6.22 Command Descriptions 3-89
N E W F I L E
CONFIG.SYS
Purpose
Continues CONFIG.SYS file processing from a new file. The file can
be located on in another directory or even on a different drive.
Syntax
NEWFILE=filename
Remarks
NEWFILE command is especially useful when the CONFIG.SYS file is
located on an inaccessible drive or in ROM. Additional device drivers
or instructions can be added easily to the new file and are processed
along with the main CONFIG.SYS file upon starting the system.
When the NEWFILE= instruction is processed, control is passed from
the present file (the one containing the NEWFILE instruction) to the file
specified in the command. Any commands placed after the NEWFILE
instruction in the original file are not processed. If the specified
filename cannot be located, CONFIG.SYS processing is terminated
(even if instructions were to be placed after the NEWFILE command)
and the remainder of the startup process is completed.
NEWFILE commands can be nested. Your original CONFIG.SYS can
call a second set of instructions via the NEWFILE command. The
second file can in turn call a third file by using the NEWFILE command,
and so on. Be sure that each file name in the successive steps has a
unique name; otherwise, an infinite loop is created as control is passed
back to the same file repeatedly.
When NEWFILE is used, it is also created as an environment variable,
retaining the value assigned by the NEWFILE= statement. This can be
used in an AUTOEXEC.BAT file for further boot-up decision-making.