It is currently Sun Sep 29, 2024 10:31 am



Reply to topic  [ 3 posts ] 
Windows Annoyance: Command-line window won't close 
Author Message
Reply with quote
Post Windows Annoyance: Command-line window won't close
When I run a batch file (CMD file), a CMD (text) windows pops up to display the standard output. After it finishes, the stupid thing hangs around with this message: "Hit any key to close this window...". Does anyone know how to get rid of this script-defeating behavior? It's script defeating because it involves manual intervention when you really want automation.

If you really do want a window to wait for human input, you can just add a "PAUSE" statement to the end of your script.


Sat May 29, 2004 8:04 pm
Felix Rex
User avatar

Joined: Fri Mar 28, 2003 6:01 pm
Posts: 16661
Location: On a slope
Reply with quote
Post 
can you paste the contents of your batch file? It sounds like you have a pause or something similar on it. By default, a batch file will automatically exit.

Either that, or you can manually add an 'exit' to the end of the batch file. That may help. Anyway, if you paste the contents I'll be glad to look it over.

_________________
They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.


Sat May 29, 2004 11:40 pm
Profile WWW
Emperor
User avatar

Joined: Wed Apr 16, 2003 1:25 am
Posts: 2560
Reply with quote
Post 
I had some problems with non-working alt-Tab while I'm in windowed console from dunno reason. It works most of time but sometimes - simple not.

_________________
++


Fri Jun 04, 2004 8:29 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.