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

Ooi Heap Sheng 8 Posts Thursday December 10, 2009Registration date January 13, 2010 Last seen - Jan 13, 2010 at 07:56 PM - Latest reply:  Ooi Heap Sheng
- Apr 22, 2010 at 08:10 PM
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.
See more 

2 replies

Best answer
1
Thank you
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

Thank you, nishant 1

Something to say? Add comment

CCM has helped 1682 users this month

Ooi Heap Sheng - Apr 22, 2010 at 08:10 PM
0
Thank you
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.