djkevin33 Posted January 7, 2008 Share Posted January 7, 2008 I make a backup of files when windows is shutdown. Is it possible with windows to make that:When windows shutdown ntbakup is executewhen windows restart ntbackup is not executeIs it possible to see if windows is shutdown or restart ?Thank you verymuch! Link to comment Share on other sites More sharing options...
i542 Posted January 7, 2008 Share Posted January 7, 2008 (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) EndIfNote: Not tested Edit: Formatting Edited January 7, 2008 by i542 I can do signature me. Link to comment Share on other sites More sharing options...
djkevin33 Posted January 7, 2008 Author Share Posted January 7, 2008 Ntbackup is start with loggof GPO. I wan't to return the states of windows, if they restart or shutdown. Is it possible? Link to comment Share on other sites More sharing options...
i542 Posted January 7, 2008 Share Posted January 7, 2008 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 More sharing options...
djkevin33 Posted January 7, 2008 Author Share Posted January 7, 2008 Thank you for your answer, maybe it's not the good command because it can't say me if they restart of shutdown. ???? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now