17
2013
How to quickly kill a program in Windows
In this scenario, the method that most Windows users do is open up Task Manager and kill the Excel task. This is a the easy method and works excellently if you need to do that once a day. However, if you’ve got to do this 10 times a day, then it’s time for a quicker and easier method.
Enter taskkill, which is an inbuilt command line tool that can be used to kill one or more processes (tasks). You can do this by process id or image name. I personally prefer using image name, which is the actual name of the program. e.g. in our case this would be excel.exe.

The syntax to kill Excel using taskkill, you’ll need to use the following command. This command will tell taskkill to force kill excel.exe
taskkill /F /IM excel.exe
Remember that when you run the above command, all Excel windows will be closed and non of your files will be saved.
You can speed this up even further by creating a .bat file with the above command. To do so, simply run notepad and copy paste this code into the notepad window.
Save this file with a .bat extension. In the future you can just double-click on this .bat file and the command will be executed.
You can use taskkill to kill just about any program. Just replace excel.exe with the full name of another process. e.g. to kill Firefox Portable, you would use:
taskkill /F /IM firefox.exe taskkill /F /IM firefoxportable.exe taskkill /F /IM plugin-container.exe
Tell us what processes you’re going to kill!
About Ajay
Ajay is an investment banker by profession and a die-hard blogger by passion. He is the owner and chief editor of Techtites. In his free time, he also blogs at AjayDSouza.com, authors a few WordPress plugins and operates Sir Arthur Conan Doyle
- Web |
- Google+ |
- More Posts (1064)
An article by
Thanks for the Tip. This tip is excellent when Task Manager is not Loading as DOS gets loaded easily. I Usually Open Task manager and End the Process which is quite lenghty