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
Closing multiple instances
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
Try this from the command line:
Or create a .bat file with that line in it and run that.
Or create a TextPad tool:
Code: Select all
taskkill /im TextPad.exeOr create a TextPad tool:
and run that.Command: cmd
Parameters: /c taskkill /im TextPad.exe
[X] Run minimized
[ ] Capture output [i.e., not selected]
[X] Close DOS window on exit
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
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.
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.
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm