Skip to content

Instantly share code, notes, and snippets.

@waylan
Created November 28, 2012 18:10
Show Gist options
  • Select an option

  • Save waylan/4162970 to your computer and use it in GitHub Desktop.

Select an option

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