Windows – Exit program in windows command prompt

command linewindows

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!

Best Answer

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.

Related Question