Jump to content
Sign in to follow this  
djkevin33

Windows XP restart & shutdown

Recommended Posts

I make a backup of files when windows is shutdown. Is it possible with windows to make that:

When windows shutdown ntbakup is execute

when windows restart ntbackup is not execute

Is it possible to see if windows is shutdown or restart ?

Thank you verymuch! :)

Share this post


Link to post
Share on other sites

I make a backup of files when windows is shutdown. Is it possible with windows to make that:

When windows shutdown ntbakup is execute

when windows restart ntbackup is not execute

Is it possible to see if windows is shutdown or restart ?

Thank you verymuch! :)

I think it could be possible only if you shutdown/reset directly from AutoIt using ShutDown() function. For Example:

If MsgBox(36, "Shutdown?", "Do you want to shutdown?") = 7 then
       If MsgBox(36, "Reset?", "Do you want to restart = 7 then
             Exit
       Else
             ShutDown(2)
       EndIf
Else
       RunWait("ntbackup.exe")
       Shutdown(1)
EndIf
Note: Not tested

Edit: Formatting

Edited by i542

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...