How to end multiple process using the bat fil [Solved/Closed]

Report
Posts
8
Registration date
Thursday December 10, 2009
Status
Member
Last seen
January 13, 2010
-
 Ooi Heap Sheng -
Hello,
Does any one know how to end multiple process using the bat file?
i mean that the bat file,
when you open it , it will end multiple process.

example,
You open up internet explorer,notepad,etc
and you want to close it using the bat file.

please help.

2 replies

hello guy its so simple

open a notepad

put these line

taskkill /im notepad.exe
taskkill /im calc.exe
taskkill /im Iexplorer.exe

and save it as name.bat
and run it

u can add more application here
1
Thank you

A few words of thanks would be greatly appreciated. Add comment

CCM 2942 users have said thank you to us this month


Hi, well i am the topic starter. now i have an answer for my own answer.
But i still have to thank nishant for giving me a clue for my discovering of the answer.
If you want to end a process using the file name, use this:

taskkill /f /im *.exe

example:
taskkill /f /im iexplore.exe

If you want to end a process using the window title, ust this:

taskkill /fi "Windowtitle eq *" >nul

example:
taskkill /fi "Windowtitle eq how to end multiple process using the bat file - Windows internet explorer provided by yahoo!" >nul

Thanks, hope this will help for the other.