Dumb newby question seeks tolerant old-timer ...

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
HarryR
Posts: 7
Joined: 25 Jun 2009 19:20

Dumb newby question seeks tolerant old-timer ...

Post by HarryR »

I'm trying to set up these lovely portable file associations the way I want them.
I particularly like being able to put two entries for .htm, so if I press Enter on a .htm file, it launches Firefox, but if I press AltGr-Enter, I can select to launch the htm in Notepad.

I'm now trying to do the same thing for batch files, .bat. Naturally, it is easy to set up the secondary association, with Notepad.
My question is, how do I tell the Portable File Associator to do the primary association, i.e., to run the batch file ?

admin
Site Admin
Posts: 66310
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Dumb newby question seeks tolerant old-timer ...

Post by admin »

Running the BAT should be the default anyway (see screenshot), so you don't have to do anything. Just cover your other BAT association with a prefixed "|" (pipe) so that it is not triggered on Enter.

Like this:
|bat>Notepad

EDIT: WOW, why is my screenshot blurred??? :?
To see the attached files, you need to log into the forum.

HarryR
Posts: 7
Joined: 25 Jun 2009 19:20

Re: Dumb newby question seeks tolerant old-timer ...

Post by HarryR »

Excellent, thank you.
At the risk of asking too much, is it possible to have these portable file associations appear in the right-click context menu ?

admin
Site Admin
Posts: 66310
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Dumb newby question seeks tolerant old-timer ...

Post by admin »

No. :)

Post Reply