Snipz Posted December 8, 2005 Share Posted December 8, 2005 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 More sharing options...
seandisanti Posted December 8, 2005 Share Posted December 8, 2005 i just want to make cmd.exe in hidden modeyou could run it, and hide the window with WinSetState("Title",@SW_HIDE) Link to comment Share on other sites More sharing options...
Guest s_mack Posted December 8, 2005 Share Posted December 8, 2005 (edited) 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 Hopefully it gets you the gist though. - Steven Edited December 8, 2005 by s_mack 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