home *** CD-ROM | disk | FTP | other *** search
- @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