Jump to content

can we make programs hidden


Snipz
 Share

Recommended Posts

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?
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...