Skip to content

Instantly share code, notes, and snippets.

@waylan
Created November 28, 2012 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waylan/4162970 to your computer and use it in GitHub Desktop.
Save waylan/4162970 to your computer and use it in GitHub Desktop.
How to stop cmd window from closing when running a script from a bat file. This way, you can read any errors and simple hit [enter] when you are done and the window will close then.
C:\Python27\python.exe myscript.py
set /p variable= "Hit enter to continue"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment