Page 1 of 1
Closing multiple instances
Posted: Sat May 02, 2015 12:27 am
by CWBillow
If I have TextPad configured to NOT allow multiple instances, then, even if I am closing several documents, I only have to confirm the close once.
If I am allowing multiple instances, is there a way to accomplish the same thing -- to close all instances at one time?
Regards,
Chuck Billow
Posted: Sun May 03, 2015 2:06 pm
by ben_josephs
Try this from the command line:
Or create a .bat file with that line in it and run that.
Or create a TextPad tool:
Command: cmd
Parameters: /c taskkill /im TextPad.exe
[X] Run minimized
[ ] Capture output [i.e., not selected]
[X] Close DOS window on exit
and run that.
Posted: Thu May 07, 2015 12:41 am
by CWBillow
New to me...How do I create a tool?
Regards,
Chuck Billow
Posted: Thu May 07, 2015 8:11 am
by ben_josephs
Did you look in the help, under
How to... | Customize Settings | Tools Menu
?
Posted: Thu May 07, 2015 8:11 pm
by miked
That's really useful, thanks Ben. I often run multiple instances. I would never have thought of doing it that way. I had to drop the /c from the parameters. I've added the tool to my menu bar.
Chuck: If you haven't figured it out yet then:
Configure/Preferences/Tools
Drop down the add box top right and select DOS command
Put taskkill /im TextPad.exe in the entry box.
Hit Apply which should add it to the + list under the tools on the left side of preferences. Hit the + to expand the list and select the new tool.
Change the options to run minimized and don't capture output and close DOS window on exit.
Rename the tool if you want by going back to Configure/Preferences/Tools and clicking on it in the list in the middle of the dialogue under tools.
Posted: Thu May 07, 2015 10:46 pm
by ben_josephs
miked: Thanks for pointing out the issue with /c.
If you add the tool with Add | DOS Command... you should not include /c.
If you add the tool with Add | Program... and explicitly specify the command cmd you should include /c.