Taskkill is Microsoft's own task-killing command line tool. Very useful for creating batch scripts to shut down multiple processes at once, but unfortunately it's only available for Windows XP Pro, not XP Home (don't know about Vista).
Luckily, the blog Buckinwell Fritish has a link to download Taskkill for those that don't have it! Just install and put in the Windows directory, and you're all set. The simplest command to kill a process is this (you can run it from the command prompt, or from doing Windows>Run):
taskkill /F /IM notepad.exe
notepad.exe can be any task you want to kill, like thunderbird.exe, firefox.exe, etc. For more documentation on it, check out Microsoft's official word.
Taskkill does basically the same exact thing as previously mentioned PSKill, but this just seems simpler and more organic than PSKill. When I have the time I plan on converting all my other scripts to use Taskkill and probably deleting all the PSTools as I don't have much of a use for the rest of them.
10 comments:
Thanks dude.
This is so helpful thanks a ton
the link doesnt work :(
404
404
You might as well delete this link, mate as its a very frustrating waste of time.
Get it here.
http://web.archive.org/web/20070125030456/http://home.wanadoo.nl/gigajosh/files/taskkill_en.zip
Thanks XDS.
You have made my day.
This article
http://goo.gl/xF4Cp
may prove useful.
Great! The archived link still works.
And yes, a word of warning. NEVER EVER download a tool/executable from an untrusted source. If you want to make sure the file is legitimate, run it through the online virus scanner at Virustotal. Report for taskkill, here: https://www.virustotal.com/en/file/68156c822eac21bb1c1469302cd3eb316b3724fbff4e35bca30a1d65b642a5eb/analysis/
Post a Comment