Jump to content
Sign in to follow this  
Tagor

Prevent CMD from popping up

Recommended Posts

Tagor

Hi,

Is there a way to prevent CMD from popping up? So for example if I would like to change the date using a CMD command.

Share this post


Link to post
Share on other sites
DaveF

Hi,

Is there a way to prevent CMD from popping up? So for example if I would like to change the date using a CMD command.

Check your docs, the Run() function has a number of parameters beyond just the file name that you're running; one of them is for flags, one of which will tell the run function to hide the window of the command being run...

Look in the AutoIt3 help file under Functions | Process...


Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

Share this post


Link to post
Share on other sites
benched42

Hi,

Is there a way to prevent CMD from popping up? So for example if I would like to change the date using a CMD command.

<{POST_SNAPBACK}>

Straight from the help file:

RunWait(@ComSpec & " /c date 03-24-05", "", @SW_HIDE)

Who lied and told you life would EVER be fair?

Share this post


Link to post
Share on other sites
Tagor

Thanks, I did find the '@SW_HIDE' parameter :).

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.