SpartaDOS X Reference Manual

The Command Processor — Advanced Features




The Command Processor — Advanced Features

Index


Default Batch File   When the command processor is first entered, it tries to run a batch file called "AUTOEXEC.BAT". You should put any system setup commands that you may need in this file.

The variable "BATCH" will be read by the command processor just before it prints its prompt. If this variable exists and contains a filename, this file will be executed as a batch file. As soon as the command processor reads the variable, it will delete it from the list of environment variables. This is how the system passes the "AUTOEXEC" filename to the command processor when it is loaded for the first time. The variable BATCH, then, can be used to cause a batch file with a different name to be executed on boot by using the line

    SET BATCH=d:filename.BAT

in CONFIG.SYS.


Previous page

Next page