This
program does one of the following things to your PC: Reboot,
Logoff, or Shutdown (power off).
Supported in windows
console version. Not the free DOS
version.
******************************************************************* PROGRAM: SHUTDOWN.Q **** PURPOSE: Reboot, Logoff, or Shutdown your windows PC. **** SYNTAX.: QUIKCODE SHUTDOWN.Q <EnterKey> ******************************************************************* equate LTWHITE-ON-BLACK to 15 equate LTWHITE-ON-BLUE to 31 equate YELLOW-ON-BLUE to 30 equate RED-ON-WHITE to 116 equate LOGOFF to 0 equate SHUTDOWN to 1 equate REBOOT to 2 equate FORCE to 4 equate POWEROFF to 8 equate FORCEIFHUNG to 10 equate flags to wst1-i move LOGOFF to flags add SHUTDOWN to flags add POWEROFF to flags color LTWHITE-ON-BLUE cls display display display display ' **************************************************' display ' * This program will gracefully shutdown your PC. *' display ' * *' display ' * When the countdown begins, you will have about *' display ' * 3 seconds to abort the program by pressing the *' display ' * Cntl-C key. For safety reasons, please close *' display ' * all other open applications before continuing! *' display ' **************************************************' display display ' Shutdown your computer (Y/N)?: ' noskip 10 move 'N' to wst100 color YELLOW-ON-BLUE accept wst100 color LTWHITE-ON-BLUE if wst100 = 'Y' or wst100 = 'y' display display ' System Shutdown in 3 seconds...' x'07' sleep 1000 display ' 2 seconds...' x'07' sleep 1000 display ' 1 second...' x'07' sleep 1000 set systemstate = flags * Shutdown the PC end. if wst100 = 'N' or wst100 = 'n' color LTWHITE-ON-BLACK cls display display display display ' Shutdown was cancelled' end. display x'07' noskip go to 10