Windows 10 CMD: Ctrl + C not killing processes?

6

2

I just upgraded to Windows 10 for a few days and have this error. I'm really sure that my computer doesn't have any program that takes control of Ctrl + C. How do i solve this and back to normal killing process like ping -t ...?

hiepph

Posted 2015-08-12T14:09:41.737

Reputation: 61

I usually have to hit Ctrl + C two or four times, (and perhaps enter a few times as well) to abort cli processes in win7's cmd and powershell environments. – Frank Thomas – 2015-08-12T14:15:15.673

if you use CONTROL + BREAK instead does that work better? – David Moylan – 2015-08-12T15:06:28.690

Part of the problem with PING in particular is that it won't immediately abort, but needs its latest echo to either recieve a response or to time-out. – Frank Thomas – 2015-08-12T15:45:26.020

@DavidMoylan Some keyboards, like those on a couple of my laptops, don't have the Pause/Break key and on the laptop that does have the Pause/Break key (yes, it's runnijng Windows 10), Ctrl+Break does NOT kill the process. – edgerrr – 2015-08-12T16:25:18.417

This drives me crazy, but one thing I do to get around this is prefix the command with start. For example:

`start ping -t ...`

It launches the command in its own window, and you can close it without closing the command window you started in. – Joe Skeen – 2016-01-09T20:20:02.343

I found that it works if I do "run as administrator" or if I open cmd using "Open command prompt here" from a folder. But if I launch a regular prompt it does not let me Ctrl+C to cancel. – Aaron – 2016-04-21T15:56:29.793

Answers

5

One possibility is that you have changed the CMD (cmd.exe) defaults. To restore the defaults, right-click on the CMD window's title bar and choose "Defaults".

Although Ctrl+C works fine on my PC in normal mode, perhaps you have UAC disabled and need to run CMD in administrator mode in order for Ctrl+C to work. To run in CMD in administrator mode, click on "Search", type in "cmd", right-click on "Command Prompt (Desktop app)", and choose "Run as administrator".

edgerrr

Posted 2015-08-12T14:09:41.737

Reputation: 241

1+1 for me it only works when running command prompt as administrator, even after disabling CTRL key shortcuts in the options... very inconvenient. – Joe Skeen – 2016-01-09T17:09:58.977

@JoeSkeen I have posted a solution myself, would be good to see if this sorts the issue for you. – The Humble Rat – 2017-06-27T15:03:57.493

CMD is running in admin mode. "Defaults" opens a window and "Enable Ctrl key shortcuts" is checked yet Ctrl+c doesn't kill it. I'm running OS10 v1909 b18363.592. A superuser answer suggests right ctrl+c and another ctrl+break. Has Microsoft changed the keys again? – J.Money – 2020-02-10T00:43:40.257

2

Just ran into this issue myself. It seems that when I return to cmd and left click in the black screen, the window title is prefixed with "Select" as though I am trying to highlight text. The first CTRL + C kills the select mode and the second CTRL + C kills the process. If I right click the window or left click the title bar as opposed to the window itself I do not get the "Select" event and CTRL + C works first time.

I believe you can also disable quick editing and this effectively stops you from highlights thus solving the issue if highlighting text in cmd is of no importance to you, the second alternative is just right click the window to reselect it.

The Humble Rat

Posted 2015-08-12T14:09:41.737

Reputation: 153

-1

So here is what I did... MANY of you MUST right click and run as administrator.

I create a shortcut on my desktop, the target is CMD.

I right click the short cut, under properties I click ADVANCED on the shortcut tab.

Check the box that says "Run as administrator"

SOLVED.

I then moved the icon to my quicklaunch. Yes I have quicklaunch in Windows 10 b/c/ I am baller like that...

Kevin Flynn

Posted 2015-08-12T14:09:41.737

Reputation: 1