Peter Reavy

Pausing execution inside the Windows Command Prompt

Posted in windows by Peter Reavy on March 23, 2012

I occasionally return to a PowerShell or cmd.exe window to discover that whatever I’ve been running there seems to have stopped. I’ve long thought that I was accidentally hitting a key combination which was making this happen but could find nothing documented. I still can find no documentation as such, but the following things seem to cause the process running in the window to stop:

* hitting Ctrl-S;

* pressing the Pause/Break button;

* selecting text when QuickEdit is enabled (a single click in the window will cause a character to be highlighted and stop your script or EXE to stop running).

Update: see also here.