How To Kill Unresponsive Programs without The Task Manager

May. 14th, 2009 By Varun Kashyap

Windows is generally not known for its stability. Among other things there are frequent “Not Responding” applications. The reasons may vary from less RAM to Viruses to poorly designed applications. So what do you do when an application hangs up?

I bet you hit Ctrl+Alt+Del or fire up the task manager in some other way, reach for the application and choose “End Task”. Now there is nothing wrong with this approach, in fact as long as it gets the job done it doesn’t matter how you do it. However, ever had the situation where the task manager itself takes ages to load up? Of course it can happen because task manager does a lot of other things besides just ending tasks so it requires that much more resources. Apart from that, how about ending the hung applications with just a single click?

Yeah! you can do so. Its simple to achieve. Just follow along:

  • Right click on the desktop and choose New > Shortcut
  • In the dialog box that appears just type the following:

    taskkill.exe /f /fi “status eq not responding”

  • Give it a name of your choice
  • Now just wait for something to start “Not Responding” and let loose your Task Killer!
    • So what did we do exactly? We just created a shortcut to run a command. The command being taskkill. Whenever you double click the shortcut you will invoke the said command which takes care of the rest. In particular the command we use says that kill all taskes whose status is equal to “not responding” and kill them forcefully (/f).

      The /fi switch is used to filter and pinpoint the application to kill. We are using the Program’s status to filter the applications that are not responding and then kill them. You can filter(and thus kill) by memory usage (equal to, greater than, less than or not equal to), cpu time, window title and others.

      In case you are wondering that its still not quite “the single click situation”, you can enable single click from within Folder Options, or better still – right click on the shortcut you just created, choose properties and assign it a shortcut key!

      Do you know of some similar neat tricks?

(By) Varun Kashyap - Programmer, Blogger and Tech Enthusiast, who tweets @VarunKashyap and blogs about tips, tricks and latest on the web at TechCrazy Blog

Enjoyed the article? Subscribe to MakeUseOf to get daily updates on new cool websites and programs in your email for free. You'll also get free printable cheat sheets to your favorite programs

Your Email:

Add MakeUseOf to:



20 Comments Add Comment
2009-05-14 21:42:44
Mike
Subscribed to comments via email

Thanks for the great tip.

However, When I click after “taskkill.exe…” it says, “unable to find file taskkill.exe”

Do I have to create a file as well as the shortcut?

Thanks

2009-05-22 12:30:23
Terenas

Valid for XP Professional, not Home

2009-05-14 23:04:29

Great Tweak,It is very helpful for users like me.

2009-05-14 23:39:36
wayne

this would be handy , if it worked for me.
win XP SP3, i get taskkill.exe file cannot be found error

2009-05-15 01:08:11

Dude thats come cool stuff, very useful thanks

2009-05-15 06:11:36
tj

that was great. i got the “unable to find” error message, too, but when I added spaces worked fine.

2009-05-15 07:17:10
youthworker

Can you give some clues as to where we put the spaces? I cut and pasted it from the description and get the message others have received.

2009-05-15 06:52:22
Subscribed to comments via email

Interesting one.But task manager has one advantage.You can end non responsive tasks without minimizing the program window you are running just clicking on the taskbar.

2009-07-31 11:28:19
david

well then what you can do is add this shortcut in your taskbar :-b

2009-05-15 07:06:13

taskkill.exe is for XP Pro only – pity the author didn’t mention that :-(

2009-06-22 05:18:28
Eric

You can download the taskkill.exe aplication and put it in your windows directory and it should work fine

2009-05-15 10:45:48
Subscribed to comments via email

I like how you guys always find great uses for very uncommon things that are very useful. What that means is that I know about and how to use Taskkill, but I never thought about creating a simple shortcut to use it. Great job…

2009-05-15 10:52:30
Transcontinental

It would be nice if authors checked their literature before making people lose their time : XP Pro only, is it?
Mama mia…

2009-05-15 21:42:16
Mike
Subscribed to comments via email

So, is it possible to create the file taskkill.exe?

For example, can I copy it from XP Pro and paste it into a folder on my XP computer?

2009-05-16 06:52:05
youthworker

I’ve browsed a few other forums and, yes, it does appear that you can download it or copy it from various websites and it will work on XP home etc. Google it and you’ll find various places to download it. I’m no expert, so i wasn’t sure where to put it, so I had to change the shortcut to include the full path eg c:\taskkill.exe /f /fi “status eq not responding”. There was probably a better way of doing this.

2009-05-25 08:13:36

thank u
its a great tool for vista specially:P

2009-05-26 12:00:41
BB

Windows IS pretty dang stable unless you are still using 3.1. How is “less RAM to Viruses to poorly designed applications” ANY fault of Windows. I can’t remember the last time Windows crashed and it was not the fault of hardware, an application or some driver.

2009-06-03 12:59:12
Subscribed to comments via email

Another way to make it single-click would be to drag the shortcut to the QuickLaunch bar. That would also solve the problem of having to view the desktop before clicking on it.

2009-06-25 20:09:49
em josefsberg

i, too, could not find taskkill.exe but i did find tskill (no extension) under \system 32. altering the command, you get: %windir%\system32\tskill.exe /f /fi “status eq not responding”, which shortcut i was permitted by xp home to create. have no idea if it will work until i get another responsive app, tho.

2009-08-15 18:39:36
Matt

Always having trouble with Vista making unresponsive programs which Task Manager cant shut down for whatever reason. But this fuckin worked! MINT!

Reply

You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.