How to end multiple process using the bat fil

Solved/Closed
Ooi Heap Sheng Posts 8 Registration date Thursday December 10, 2009 Status Member Last seen January 13, 2010 - Jan 13, 2010 at 07:56 PM
 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.
Related:

2 responses

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