Jump to content
Sign in to follow this  
liquid98

execute script at shut-down

Recommended Posts

Hi,

I've read about how to execute a script at boot time, but how can I execute a script when I shut-down Windows (XP)?

What you mean is, you want the script to detect when you are shutting down the pc then to kick off? I would imagine if applicable it would be a lot easier to use the script to run what you want it to then have the script shut down your pc, you could use something as simple as shutdown() then.

To have a script running in the background that will detect when the pc is about to shutdown, then execute could take some work.

Share this post


Link to post
Share on other sites

Assuming you are using Windows XP PRO.

Start > Run > gpedit.msc > User Configuration > Windows Settings > Scripts (Logon/Logoff). You can set a Logoff script there. Afaik, any program will work.

If you are using Windows XP Home.. I don't think there is a matching reg key to edit..

Share this post


Link to post
Share on other sites

Assuming you are using Windows XP PRO.

Start > Run > gpedit.msc > User Configuration > Windows Settings > Scripts (Logon/Logoff). You can set a Logoff script there. Afaik, any program will work.

If you are using Windows XP Home.. I don't think there is a matching reg key to edit..

Or what covaks said,.. It would be very easy to just place it in your logoff script if that is applicable.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...