Command line tip #12- shut down hung programs
It’s been quite a while since I gave a straight command line tip but here’s one for quickly closing a program that gets stuck or frozen. You can use the Task Manager (described here) but that can take a fairly long time. With the command “taskkill”, you can force a quick shutdown of a hung program. The details of this command are discussed on a page at my command line site and the following tip is from there.
To quickly shut down a non-responding program, open the command line and enter:
taskkill /f /fi "status eq not responding"
For convenience, you can create a batch file with this command. Simply enter the command given above in Notepad and save it as “close_stuck_programs.bat” . Be sure that Notepad does not tack on the extension TXT. Place the file on the desktop or somewhere convenient. If a program hangs up, double-click this file to close the program down.
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments
No comments yet.
Sorry, the comment form is closed at this time.