How to kill process in batch by using wildcard filters?

24 10 2008

I often get irritated while working in huge frameworks. A lot of application might be running simultaneously and it fills up my task bar. Usually I drag and adjust my taskbar, 3X more taller than usual. But still they fill up my taskbar. Most of them were servers running in command prompts or executable have some common prefix and Its a real burden while closing all windows. I’ve to close them one by one. Is there any command gun to kill them all in one shot? šŸ˜‰


You could use the command taskkill. Have a look at the syntax.

Syntax: taskkill /IM <ExeName>
E.g.
C:\>taskkill /IM note*
SUCCESS: The process "notepad.exe" with PID 2428 has been terminated.
SUCCESS: The process "notepad.exe" with PID 3588 has been terminated.
SUCCESS: The process "notepad.exe" with PID 4960 has been terminated.
SUCCESS: The process "notepad.exe" with PID 3320 has been terminated.
SUCCESS: The process "notepad.exe" with PID 4704 has been terminated.


Note that taskkill command is available from Windows XP onwards. So take care.


Targeted Audience – Beginners.

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s




%d bloggers like this: