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.