Jump to content

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! :)

Link to comment
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

I can do signature me.

Link to comment
Share on other sites

Ntbackup is start with loggof GPO. I wan't to return the states of windows, if they restart or shutdown. Is it possible?

Ahhh sooooo..... :)

WinGetState("Window Title")

I can do signature me.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...