8 Nisan 2008 Salı

How To Kill A Process In Windows: TASKKILL

What is taskkill?

To kill a process in Windows using command-line use TASKKILL command.

If you know the name of the process use /im switch. Following command terminates Windows Media Player:

taskkill /im wmplayer.exe

If you know the process id, use /pid switch. Following command terminates the process identified by PID=1545:

taskkill /pid 1545

If you want to kill the parent process and its child processes, namely tree-kill, use /t switch. Following command terminates the process identified by PID=1545:

taskkill /t /pid 1545

If you want to force the process to be terminated, use /f switch. Following command terminates the process forcefully:

taskkill /f /pid 1545

Hiç yorum yok: