|Purpose:||End the specified process|
|Format:||TASKEND [/F /Ne /R] pid | name | "title"|
|pid||The process ID|
|name||The process name|
Windows applications (and Windows itself) run as one or more processes or tasks. You can use the TASKLIST command to display a list of currently-running tasks. TASKEND can be used to end a task.
When you use TASKEND, you must specify the task you want to end by process ID number (either decimal or hex with a leading 0x), by name (usually the name of the executable file that started the task) or by window title. If you use the Window title to specify the task, you must enclose it in double quotes. You can use wild cards and extended wildcards in the window title.
If you use TASKEND without the /F option, the effect is much the same as closing a window by clicking the close button. The application is notified of the request to end the task and has an opportunity to save data, prompt whether you mean to shut down, and perform other normal "close" operations.
If you use the /F option with TASKEND, the application is shut down abruptly and has no chance to save data. Use of the /F option is only recommended for unusual circumstance and advanced users because of the possibility of data loss.
Using this command may require the Windows DEBUG privilege, so (depending on the Windows version and the process you are trying to end) it may not work in a limited user account.
Force the process whose window title is "BadApp" to exit:
taskend /F "BadApp"
|/F||Forces the task or application to end immediately, with no opportunity to save data, prompt the user, etc. Use this option with caution; it can possibly lead to system instability and data loss or corruption.|