X
wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time.
This article has been viewed 86,055 times.
Learn more...
Closing multiple PC programs with a batch file requires you to know mostly about the command "taskkill". It is not quite hard and you can learn to do it yourself in about 5 minutes!
Steps
-
Open Notepad or Notepad++. Close all programs except your web browser that contains this page and Notepad or Notepad++.
-
Type @echo off and then hit ↵ Enter.Advertisement
-
Type cls and then hit ↵ Enter.
-
Type taskkill /IM your-program-name.your-program-extension /T /F and then hit ↵ Enter.
-
Repeat this command for as many programs as you want!
-
When finished, type exit on the last line and hit ↵ Enter.
-
Click File > Save As.
- Change the Save as type to all files in Notepad; in Notepad++ change to batch file.
- In Notepad, select all of the filename and delete it and replace it with your-preferred-program-name.bat. In Notepad++, you'll see that the extension is already .bat so only change the part before .bat to your preferred program name.
-
Select your preferred saving directory at the top and when finished, click Save.
-
Check your work by running the batch. Look in the task manager (Ctrl+Alt+Delete) to see if the program doesn't exist there anymore.
- If the program does exist, edit your batch program by right clicking at the program and clicking edit. Check that you follow the instructions correctly.
- If the program doesn't exist, well done! You have completed this how-to!
Advertisement
Expert Q&A
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Tips
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
References
- Microsoft CMD
- Microsoft CMD Help
- Notepad++ Copyright © Don Ho 2015
- Notepad
- Ipod Copyright © Apple.Inc 2015
About This Article
Thanks to all authors for creating a page that has been read 86,055 times.
Is this article up to date?
Advertisement