Sunday, May 03, 2009

Force kill the freeze programs

When a program hangs what do you do? Usually you right click on task bar and open Task Manager. Select the hung programs (that shows “Not Responding”) and click on “End Task”. I have got a better idea, use taskkill.exe tool (in-built tool with XP Pro, Vista and up). Create a batch file (see the instructions below) and running this batch file we can force kill the “Not Responding” programs.

Note: You have to make a Icon on Desktop or on Dock by yourself with the batch file below.

  • Right click on the desktop. From the menu hover over New and click on Text Document.

  • Name it “Kill-the-Zombies.bat” make sure there is no .txt at the end of the file.

  • Hit “Yes” in the dialog box that asks you do you want to change the extension.

  • Right click and select edit. This will open a blank notepad.

  • Type the following lines:


@echo off
taskkill.exe /f /fi “status eq not responding”
exit





  • Save it. File -> Save and close notepad.

  • Now any time a program freezes just double click Kill-the-Zombies.bat. In fact this will kill all programs that are not responding.

1 comment:

Tweaks 4 Pc said...

Hey, this is really a neat tip! I'm going to use it for the next time I have some program freeze on me. Thanks for sharing.