how to stop command execution in command prompt windows 10

6

2

in recent release of windows 10 command prompt microsoft have placed ctrl c and ctrlv ,in older versions we used to stop command prompt execution by pressing ctrlc

In recent release of windows 10 command prompt cant stop the execution..any other alternatives ?

BlueBerry - Vignesh4303

Posted 2015-07-12T08:15:34.177

Reputation: 7 221

Answers

4

CTRL+C will send a break (stop execution) when no text is selected. Try it ;-)

Reference

misha256

Posted 2015-07-12T08:15:34.177

Reputation: 10 292

but for e.g take a traceroute press ctrl c the command execution doesnt stop.. – BlueBerry - Vignesh4303 – 2015-07-12T08:39:59.463

@BlueBerry-vignesh4303 Even if you press CTRL+C twice? – misha256 – 2015-07-12T08:46:17.450

@BlueBerry-vignesh4303 you have to wait for all threads to terminate and all hardware calls to finish. Traceroute can't just close all hardware connections, it has to wait until all devices have finished their job (in this case only the network adapter/controller) – GiantTree – 2015-07-12T08:46:30.137

@GiantTree Hmm, in all my tests tracert terminates immediately upon CTRL+C. Interesting... – misha256 – 2015-07-12T09:02:27.193

@BlueBerry-vignesh4303 Are you using Windows tracert command, or are you doing a traceroute via the router itself (e.g. using telnet)? – misha256 – 2015-07-12T09:04:58.387

@misha256 for me as well, but maybe there is some blocking hardware call going on (I imagine metered connections because they have high latency sometimes). – GiantTree – 2015-07-12T09:34:47.410

2Another command to break is CTRL + break/pause. It breaks in a different way than CTRL + C does, but it might work too. – LPChip – 2015-07-12T11:18:18.430

confirmed, ctrl+c breaks the tracert command, build 10162 – Moab – 2015-07-12T20:54:48.563

2

best way seems (thanks to @LPChip):

CTRL+ Break(pause)

T.Todua

Posted 2015-07-12T08:15:34.177

Reputation: 2 436

That key no longer exists on the new ThinkPad keyboard layout :( – paradroid – 2017-06-18T18:07:18.473

2

I had the same thing happening with Ctrl+C not stopping the Tracert process. However Ctrl+Pause/Break did.

This was on Windows 10 build 1709 with updates current as of 06-27-2018. I suspect whatever is going on will be machine specific for some odd reason.

Afterburne

Posted 2015-07-12T08:15:34.177

Reputation: 21

This solved it for me in Anaconda Prompt. In normal CMD on win10, ctrl+c worked, but there I had to use Ctrl+Break. I can confirm that it is machine dependent - it does not happen on my laptop with win10 – lucidbrot – 2018-09-21T13:06:07.433