tripp Posted February 25, 2011 Share Posted February 25, 2011 Hi, im making a script for my own use to shut down the computer, using the cmd command 'shutdown -s -t 01', now scripting it as follows works fine, run("cmd") WinWait("C:\Windows\system32\cmd.exe") Send('shutdown -S -t 01{ENTER}') but windows pops up with the command prompt and then a window saying "windows will shut down in less than a minute" is there a way to hide both the command prompt, and the window itself from showing? i know there is a script line, _RunDOS, but i have yet to figure out how to use it. can anyone help me with it? im not p=sure of the proper useage of the script. thanks ~tripp Link to comment Share on other sites More sharing options...
JoHanatCent Posted February 25, 2011 Share Posted February 25, 2011 #include <Process.au3> $rc = _RunDos("'shutdown -S -T 01") ;===== OR ========== from AutoIT Shutdown(1) 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