Is there any command to stop the execution of current running commands in windows cmd prompt?

  • Do you mean something like kill command in Linux? – arnep Mar 19 '13 at 9:26

Did you try the following key combination: CTRL+C


For Windows 10 (cmd, PowerShell) you can use one of this:

  • Right CTRL+C
  • CTRL+Pause/Break
| improve this answer | |
  • If you are running a Python script, CTRL + Pause/Break won't be caught by the Python program and will actually stop it. – Pro Q Feb 11 '18 at 21:04
  • and what is the batch command to exit a cmd from another cmd? – Hosein Aqajani Apr 28 '19 at 10:51
  • These controls no longer work in OS10 v1909 b18363.592. Another superuser suggests running CMD with admin privileges and checking that "defaults" doesn't intercept ctrl commands, none of which make a difference. Has Microsoft changed the keys yet again? – J.Money Feb 10 at 0:52

The best way:

CTRL + Break(pause)

| improve this answer | |
  • Cool! I have tried <kbd>Ctrl</kbd> + <kbd>C</kbd> several time on windows 10 console and it was still holding. <kbd>Ctrl</kbd> + <kbd>Break(Pause)</kbd> really works! – Cherry Jun 30 '17 at 4:34
  • @Cherry, I had same problem. But with right Ctrl it works as expected. – Bohdan Kuts Jan 15 '18 at 14:25

First use tasklist to show all running tasks. Then use taskkill /PID 1234 to kill a specific task (PID is the second column) or use taskkill /IM program.exe to kill a specific programm (all instances).

Or just use Ctrl+C to kill current running programm in current cmd window.

| improve this answer | |