I want to be able to execute a script when my power button is pushed so that my computer will be able to run an update before it powers down. I would like to be able to keep the computer from going through the shutdown process until the script has completed running.
ANy help with this is appreciated
CLICK HERE
SOLUTION updated 14-JUN-2009
Place a shortcut to it in your startup folder
USE THE ATTACHED PROGRAM TO:
-Intercept Windows Shutdown
-Customizable Shutdown Options (Logoff, Hibernate, Forced Shutdown, Standby...ETC)
-Close Ride Runner
-Run up to 4 programs or scripts one after another
-Disable mouse and keyboard
-turn off monitor as soon as power button is pushed
README
Open the RUNNER.INI file and enter the names of the programs you wish this program to run.
Starting with Program1.
It will not run the next program until the previous one has closed or finished.
=====================
EXAMPLE OF RUNNER.INI
=====================
[PROGRAM1]
WINDOWNAME= "NAME DISPLAYED IN DISPLAY BOX WHEN WAITING FOR PROGRAM 1. CAN BE ANYTHING"
EXEPATH= "PROGRAM 1 EXECUTABLE AND PATH" "EXAMPLE C:\WINDOWS\NOTEPAD.EXE"
[PROGRAM2]
WINDOWNAME= "NAME DISPLAYED IN DISPLAY BOX WHEN WAITING FOR PROGRAM 2. CAN BE ANYTHING"
EXEPATH= "PROGRAM 2 EXECUTABLE AND PATH" "EXAMPLE C:\WINDOWS\NOTEPAD.EXE"
[PROGRAM3]
WINDOWNAME= "NAME DISPLAYED IN DISPLAY BOX WHEN WAITING FOR PROGRAM 3. CAN BE ANYTHING"
EXEPATH= "PROGRAM 3 EXECUTABLE AND PATH" "EXAMPLE C:\WINDOWS\NOTEPAD.EXE"
[PROGRAM4]
WINDOWNAME= "NAME DISPLAYED IN DISPLAY BOX WHEN WAITING FOR PROGRAM 4. CAN BE ANYTHING"
EXEPATH= "PROGRAM 4 EXECUTABLE AND PATH" "EXAMPLE C:\WINDOWS\NOTEPAD.EXE"
[RR]
USINGIT= "SHUTDOWN Ride Runner properly if it is running (YES OR NO)"
[MONITORCONTROL]
USEIT= "Turn off monitor when shutting down (YES OR NO)"
OFFDELAY= "Turn off monitor delay in seconds"
BACKON= "Turn on monitor when RUNNER is done (YES OR NO)"
BACKONDELAY= "Turn on monitor delay in seconds"
[OPTIONS]
BLOCKMOUSEANDKEYBOARDINPUT= "Disables your mouse a keyboard until RUNNER is finished (YES OR NO)"
SPEECH= "Spoken Status of RUNNER (YES OR NO)" (SAPI required)
SHUTDOWNWHENDONE= "Shutdown computer when RUNNER completes (YES OR NO)"
SHUTDOWNOPTION= "Options for method of shutdown"
/[SHUTDOWN OPTIONS]
0 = Logoff
1 = Shutdown
2 = Reboot
4 = Force
8 = Power down
16= Force if hung
32= Standby
64= Hibernate
PB Intercept No Longer Needed