Open selected file using specific program
Moderators: Hacker, petermad, Stefan2, white
Open selected file using specific program
I am wanting to create some buttons that will allow me to open files using specific programs rather than the default file associations. I don't need anything ‘clever’ offering me choices based on ‘open with’ choices - just a fixed button that would open the selected file in (say) Foxit Phantom rather than Acrobat reader or Sublime Text instead of Notepad.
I think this is probably straightforward but can’t think where to start.
I think this is probably straightforward but can’t think where to start.
Re: Open selected file using specific program
It's really easy: Create a new button with the command you want to run and put %P%N in the parameters. Alternative way: Drag the application's executable to the button bar and drop it on a free space there. Then edit the newly created button and add %P%N in the parameters field.
To use such a button, place the cursor in a file and click the button.
Regards
Dalai
To use such a button, place the cursor in a file and click the button.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Open selected file using specific program
Thank you - that’s really helpful.
Re: Open selected file using specific program
2 SteveH
Are you familiar with a TC function called "Internal associations"?
Using it, you can open files by just pressing ENTER with programs other than those associated system wide.
So, using your example, PDFs by Foxit, TXTs in Sublime, without changing system wide assoociations.
Sometimes it's more convenient than button.
Are you familiar with a TC function called "Internal associations"?
Using it, you can open files by just pressing ENTER with programs other than those associated system wide.
So, using your example, PDFs by Foxit, TXTs in Sublime, without changing system wide assoociations.
Sometimes it's more convenient than button.
-
- Junior Member
- Posts: 13
- Joined: 2022-04-19, 15:04 UTC
Re: Open selected file using specific program
i was looking for this for long time! its working but its wont open multi selected files and instead opening only last selected, is it possible to open multi selected files that way?
Re: Open selected file using specific program
Use %S instead of %P%N in your buttonjeee_michel wrote: 2022-04-19, 15:58 UTC i was looking for this for long time! its working but its wont open multi selected files and instead opening only last selected, is it possible to open multi selected files that way?
and you can select more than file file if your tool supports it.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
-
- Junior Member
- Posts: 13
- Joined: 2022-04-19, 15:04 UTC
Re: Open selected file using specific program
I tried with Photshop and Illustrator it didnt work.. :<
Re: Open selected file using specific program
Look for help on their command line syntax.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
-
- Junior Member
- Posts: 13
- Joined: 2022-04-19, 15:04 UTC
Re: Open selected file using specific program
I will Thanks..
-
- Junior Member
- Posts: 13
- Joined: 2022-04-19, 15:04 UTC
Re: Open selected file using specific program
i figured out! it works with %P%S if anybody needs