Killing Windows processes with batch files or command line
November 13th, 2005
Due to a certain project Ia^??ve headed in my current workplace I had to a^?oemastera^?? the secrets of the wonderful world of Windows Batch file scripting. ![]()
Ia^??ve just discovered something new today, which is always cool.
A lot of people know that you can start and stop Windows services by using the net stop and net start commands.
But how about stopping processes?! Today I’ve encountered a situation that forced us to kill a process forcibly.
I found out that Windows XP has a command just for that: TASKKILL
Ita^??s actually surprisingly powerful.
Run TASKKILL /? to see all the switches and options.
Note that TASKKILL only exists on Windows XP.
If youa^??re using Windows 2000 or any other Windows, you can always use the freeware pskill by the wonderful Sysinternals.
(BTW, they have tons of other cool free Winwods administration tools)
Oh, and if we’re already on the subject of Batch file scripting, a great resource for that is Rob van der Woude’s Scripting Page.







