home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource1
/
cenvid
/
reboot_1.bat
< prev
next >
Wrap
DOS Batch File
|
1993-10-01
|
1KB
|
27 lines
@echo off
REM *****************************************************************
REM *** Reboot_1.bat - Reboot computer by jumping calling the ***
REM *** boot interrupt 0x19. To provide protection ***
REM *** from accidentaly rebooting, you must enter ***
REM *** PLEASE as the first parameter. ***
REM *****************************************************************
REM **************************************************************
REM *** Check that "PLEASE" is the first parameter. CEnvi ***
REM *** return errorlevel if it is not please. ***
REM **************************************************************
CEnvi return( strcmpi("%1","Please") ? 1 : 0 )
if errorlevel 1 GOTO PLEASE
REM ***************************************************
REM *** Interrupt 0x19 is provided for a warm boot. ***
REM ***************************************************
CEnvi reg.ax = 0; interrupt(0x19,reg);
:PLEASE
ECHO Reboot_1.bat will reboot your computer. To execute Reboot.bat you
ECHO must enter: REBOOT_1 PLEASE