When in the command prompt: I am looking for a Windows equivalent of CTRL+C in unix and mac to force exit a program in a command prompt. Sometimes my program would just infinitaly wait for... something and I would like to close it without hitting CTRL+ALT+DELETE and force quitting the windows command prompt. Thanks!
migrated from stackoverflow.com Oct 20 '09 at 17:41
This question came from our site for professional and enthusiast programmers.
|
Actually, it's Ctrl+C on Windows too. Ctrl+Break usually works as well, but with some commands it has some interesting differing semantics compared to Ctrl+C (see | |||
|
feedback
|
|
Normally, that would be CTRL-BREAK (the PAUSE/BREAK key on a 101-key keyboard) but I think this can be disabled. Give it a shot. But this isn't really a programming question so I'm voting to shift it to superuser. | |||
feedback
|
|
Ctrl + C will stop a program running from the command prompt, similar to other operating systems. To force kill a process from the command prompt, use the following command:
| |||
|
feedback
|
