Jump to content
Sign in to follow this  
tripp

hiding command prompt

Recommended Posts

tripp

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.