How To Terminate A Process Or Task In Windows
Sometimes there are some processes or tasks running on our system that we do not need, or have started automatically that are hindering with our work, or have become unresponsive. If they are non-system processes then we might terminate those processes. In this video, we covered the steps to terminate a process on a Windows system. The video covers two ways of terminating a process or a task. One is through the task manager. The other is through the command prompt. The command prompt method covers 2 ways to terminate a process. Using Process ID and using process name. Terminating a task via task manager is a very simple and user-friendly way. But if someone wants to create some kind of script that contains commands to execute, then the command prompt method is for them. We have taken an example of a dummy process named someprocess.exe and seen both methods. We have also created a batch script just to demonstrate how one can create a script to run the command or set of commands with just a single click. I hope the video proves to be informative. Thank you. Commands used in the video: A. List running processes and filter them: tasklist tasklist /fi "imagename eq PROCESS_NAME.exe" tasklist /fi "imagename eq PROCESS_NAME.exe" /fi "status eq running" B. Terminate a process via process ID and process name taskkill /pid PROCESS_ID /f /t taskkill /im PROCESS_NAME.exe /f /t C. Help on commands tasklist /? taskkill /? Note: If the process name is not found in taskkill then provide the complete path to that process's executable in double-quotes. Run the command prompt as administrator to execute the commands.
Download
0 formatsNo download links available.