To kill a process what we have to do is to run
this windows command taskkill /IM /t /f
Where taskkill is the command to kill the
process, /IM is
the image or process name, /t
to kill all the sub processes, and /f to kill the process
forcefully.
I
am lazy to write all this in command prompt with Admin privileges :)
That's why I have created a sample batch file where I just write the name
of the process and it kills the process.
Create Batch File:
1. Open notepad and write this code
@ECHO OFF
set /p ProcessName= Enter Process Name To Kill:
taskkill /IM "%ProcessName%" /t /f
2. Save this file as <any
name>. bat . But don't save it as taskkill.bat
Execute batch file:
Double click to open this batch file and write the
process name that you want to kill
exanple:
Enter Process Name To Kill : iexplore.exe