Exit program in windows command prompt

Solution 1:

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:

taskkill /F /IM process.exe

/F will force termination, /IM means you're going to provide the executable (image) name, and process.exe is the process to end.

Solution 2:

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 ping -t for example).

Solution 3:

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.