How to Close Multiple PC Programs with a Batch File

Open Notepad or Notepad++.,Type @echo off and then hit ↵ Enter.,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...

11 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Open Notepad or Notepad++.

    Close all programs except your web browser that contains this page and Notepad or Notepad++. ,,,,,, 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. ,, 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!
  2. Step 2: Type @echo off and then hit ↵ Enter.

  3. Step 3: Type cls and then hit ↵ Enter.

  4. Step 4: Type taskkill /IM your-program-name.your-program-extension /T /F and then hit ↵ Enter.

  5. Step 5: Repeat this command for as many programs as you want!

  6. Step 6: When finished

  7. Step 7: type exit on the last line and hit ↵ Enter.

  8. Step 8: Click File > Save As.

  9. Step 9: Select your preferred saving directory at the top and when finished

  10. Step 10: click Save.

  11. Step 11: Check your work by running the batch.

Detailed Guide

Close all programs except your web browser that contains this page and Notepad or Notepad++. ,,,,,, 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. ,, 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!

About the Author

J

James Jenkins

Brings years of experience writing about crafts and related subjects.

151 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: