Sometimes a Windows program or file will hang and just sit there frozen with none of the menus or functions responding to the mouse or keyboard. There are several ways to close down a hung process but the command prompt provides a very quick and easy one with “taskkill”. The appropriate command is:
taskkill /f /fi "status eq not responding"
This command can be entered into the command prompt directly or used to create a one-line batch file. To make the batch file, copy and paste the command given above into a blank Notepad file and save as kill-task.bat. Make sure to save as type “All Files” and with extension .bat, not as a text document. Save the file someplace convenient and simply double-click it if you need to close a hung process. Note that this is a one-step process and does not require that you know the name of whatever is hung up. The command closes anything that is not responding.
Does not apply to Windows XP Home, which lacks the Taskkill command.
Get your own favorite tip published! Know a neat tech tip or trick? Then why not have it published here and receive full credit? Click here to tell us your tip.
This tips section is maintained by Vic Laurie. Vic runs a Windows blog called The PC Informant and also operates a computer education website.
Click here for more items like this. Better still, get Tech Tips delivered via your RSS feeder or alternatively, have the RSS feed sent as email direct to your in-box.
Comments
Thanks for the tip!
The usual way would be to press Ctrl-Alt-Del (Win7), enter the Task List, and stop the Task that is not responding. Simpler...(?)