There you go, this should help ya.
http://www.tutorial5.com/content/view/157/47/
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
New Age Garmin - Skin for RR
New Age Slider - RR SKin In Progress
"It's called CODE because I don't want you to know"
There you go, this should help ya.
http://www.tutorial5.com/content/view/157/47/
Oh yeah forgot to mention
Im running XP HOME
there is no group policy editor for the home edition.
ANy other ideas woud be greatly appreciated.
New Age Garmin - Skin for RR
New Age Slider - RR SKin In Progress
"It's called CODE because I don't want you to know"
or you can download poweroff
http://users.telenet.be/jbosman/applications.html
and configure it to run your script once the process of your frontend ends
that way poweroff will sit in the system tray when the frontend process ends poweroff will run your script and then shutdown the pc
No I dont have this in the registry, checked this.
sorry to say cant get power off to stop the shutdown process. Shutdown just kills power off.
New Age Garmin - Skin for RR
New Age Slider - RR SKin In Progress
"It's called CODE because I don't want you to know"
New Age Garmin - Skin for RR
New Age Slider - RR SKin In Progress
"It's called CODE because I don't want you to know"
but you an tell it to run a program as well, it's in the options box
i looking into that for a while but i'm having a hard time finding one that work's
have you tried making a batch file?
Bookmarks