home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
sysutl
/
reboot.arc
/
REBOOT.DOC
< prev
Wrap
Text File
|
1988-02-07
|
2KB
|
57 lines
NAME
reboot - create file(s) and reboot utility
SYNTAX
reboot [ [/ | -] fc ] [ file ... ]
DESCRIPTION
REBOOT creates specified zero length file(s) and performs a reboot.
The purpose is to allow conditional jumps in AUTOEXEC.BAT based on
the existence of the files. For example, if the following code is
in AUTOEXEC.BAT:
IF EXIST CLEAN GOTO NORES
:
DEL CLEAN
:
: invoke resident programs here
:
:NORES
and the user entered "reboot c:\clean", the system would boot without
loading the resident programs.
The list of files may be specified on the command line (the filenames
are to be separated by spaces). If no files are specified on the
command line, the environment variable "REBOOT" is examined for the
list of files (again space separated). If neither the command line nor
the environment specifies the list of files, a default filename "C:\CLEAN"
is used.
COMMAND LINE OPTIONS
/f or -f Create NO files prior to the reboot.
/c or -c Perform a COLD reboot. The default is a WARM reboot, as if
the user had entered CNTL-ALT-DEL. A COLD reboot is as if the system
has just been powered up or the reset switch used (for you IBM'ers,
that's the big red switch on the right side of the computer :-).
RESTRICTIONS
The command line options may not be included in the environment variable
REBOOT.
When using SET to define REBOOT, take care NOT to include spaces around
the equal sign. For example:
SET REBOOT=C:\FOO C:\BAR
is valid, however:
SET REBOOT = C:\FOO C:\BAR
sets a variable named "REBOOT " instead of the expected "REBOOT" and
the first file name will be taken as " C:\FOO" instead of the expected
"C:\FOO".