durex Posted November 22, 2004 Posted November 22, 2004 Is it possible to hide the command-prompt looking window it creates when run?Tried using CMDOW @ /HID in the batch that uses this, but all it does is hide the batch window itself and not the one sleep.exe creates....Thanks.
prathapml Posted November 22, 2004 Posted November 22, 2004 Well, basically the sleep.exe wants to have a command-window to run in. So don't use CMDOW if you need sleep.exe to not show up another window of its own.You'll understand what I mean, if you try this:1. Type command to sleep.exe from "Run" box. (sleep 5) - this creates a "Sleep" window2. Open a command-prompt, run the sleep from there. (sleep 5) - no extra sleep window is seenIf you want a real good solution, then I'd say move to using XPlode for your unattended scripts. It allows you to hide specific windows (like what you want) - and does a lot of advanced things.
gunsmokingman Posted November 22, 2004 Posted November 22, 2004 (edited) This Doesnt use sleep.exe what it does is make a vbs with the sleep vbs cmdthan it calls the vbs than goes on. Just modify the code to suit your needs.echo offclsmode con: Cols=35 Lines=3color 9ftitle Timing Test > R875.vbs echo Wscript.sleep 875>> R875.vbs echo Wscript.quit > R1970.vbs echo Wscript.sleep 1970>> R1970.vbs echo Wscript.quitclscolor F0echo.echo 1start /w R875.vbsclscolor F9echo.echo 2start /w R875.vbsclscolor F8echo.echo 3start /w R875.vbsclscolor F7echo.echo 4start /w R875.vbsclscolor F6echo.echo 5start /w R875.vbsclscolor F5echo.echo 6start /w R875.vbsclscolor F4echo.echo 7start /w R875.vbsclscolor F3echo.echo 8start /w R875.vbsclscolor F2echo.echo 9start /w R875.vbsclscolor F1echo.echo 10start /w R875.vbsdel R875.vbsCLSCOLOR 5EECHO.echo Did It Work!!!!start /w R1970.vbsdel R1970.vbsThe Red Highlights are the time varibles > R875.vbs echo Wscript.sleep 875>> R875.vbs echo Wscript.quit > R1970.vbs echo Wscript.sleep 1970>> R1970.vbs echo Wscript.quitHere The cmd just edit to your needsHope This Helps Edited December 29, 2005 by gunsmokingman
durex Posted November 23, 2004 Author Posted November 23, 2004 Found this thread and using this instead. Works like a charm... no cmd prompt to worry about either...http://www.msfn.org/board/index.php?showtopic=32227
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