Sign in to follow this  
Followers 0
djkevin33

Windows XP restart & shutdown

5 posts in this topic

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



#2 ·  Posted (edited)

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.

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Thank you for your answer, maybe it's not the good command because it can't say me if they restart of shutdown.

????

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  
Followers 0