Jump to content
Sign in to follow this  
Snipz

can we make programs hidden

Recommended Posts

Snipz

i just want to make cmd.exe in hidden mode


Once my friend told me that he had found Jesus. I thought to myself, "Woohoo, we're rich!" It turns out he meant something different.Sometimes I just like to lay in my bed and look up at the stars and wonder..where the hell did my roof go?

Share this post


Link to post
Share on other sites
seandisanti

i just want to make cmd.exe in hidden mode

you could run it, and hide the window with WinSetState("Title",@SW_HIDE)

Share this post


Link to post
Share on other sites
Guest s_mack

You can also do it right from your Run or RunWait command - that way you don't need to worry about titles

RunWait ( @ComSpec, $workingdir, @SW_HIDE)

then, of course, you can add a /c switch and put the command you are launching from cmd.exe into it. Like

RunWait ( @ComSpec & " /c dir", "c:", @SW_HIDE)

Would list the contents of the current directory and then close cmd.exe (of course, that would be useless because it would be hidden and you'd never see the output).

Don't take the above code literally - I'm not the best at getting syntax right from memory :P Hopefully it gets you the gist though.

- Steven

Edited by s_mack

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  

×