(internal) file associations

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
kodepr
Junior Member
Junior Member
Posts: 38
Joined: 2019-09-05, 08:13 UTC

(internal) file associations

Post by *kodepr »

Hi,

Is it possible to have multiple internal file associations with a file extension and then select ad how which program you want to use on a file?
For example, decide on the fly which program you want to use when you want to view a pdf:
- default program in windows settings: adobe
- internal association 1: PDFX Change
- internal association 2: Sumatra

Using TC 10.00 64 bit on a windows 10 machine

Thanks in advance,
kind regards.
I'm currently using Total Commander Version 10.00 64bit
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6482
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: (internal) file associations

Post by *Horst.Epp »

Yes, no problem.
The selection is with the context menu.
All internal associations are shown on top.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: (internal) file associations

Post by *petermad »

You would have to set the "Open" field to either * or **
Help wrote:Open
* A single asterisk causes a context menu with all other verbs to be shown when you press Enter
** A double asterisk opens the file with the default system association
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
kodepr
Junior Member
Junior Member
Posts: 38
Joined: 2019-09-05, 08:13 UTC

Re: (internal) file associations

Post by *kodepr »

Hi,

Both solutions work. Great, thanks for your help.

Just out of curiousity:
You would have to set the "Open" field to either * or **

Help wrote:
Open
* A single asterisk causes a context menu with all other verbs to be shown when you press Enter
** A double asterisk opens the file with the default system association
Why does ** exist? Isn't that just like defining no internal association at all?
I'm currently using Total Commander Version 10.00 64bit
kodepr
Junior Member
Junior Member
Posts: 38
Joined: 2019-09-05, 08:13 UTC

Re: (internal) file associations

Post by *kodepr »

@petermad
Or did you mean like so?

Code: Select all

[Associations]
Filter1=*.pdf
Filter1_open=*
Filter1_Sumatra=""%commander_path%\Plugins\wlx\slister\SumatraPDF.exe" "%1""
Filter1_PDF-XChange Editor=""%COMMANDER_DRIVE%\Program Files\PDF-XChange Editor Portable\PDFXEdit.exe" "%1""
Filter1_System default=**
I'm currently using Total Commander Version 10.00 64bit
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: (internal) file associations

Post by *petermad »

2kodepr
No I meant either:

Code: Select all

Filter1_open=*
or

Code: Select all

Filter1_open=**
When you use the first one you will get the options in the top of the right-click menu, and you will get a small menu with only the options when you double-click or press enter on a file.

With the second one you also get the options in the top of the right-click menu, but double-click or pressing enter will open the file in the Windows default program.


if you additionally to Filter1_open=* use

Code: Select all

Filter1_System default=**
you will get a "System default" option in the double-click (or enter) menu, but the "System default" will not be shown in the right-click menu.

___________________________

Hint: you can open with Lister plugins like this:

Code: Select all

Filter2=>Imagetypes
Filter2_open=**
Filter2.icon=**
Filter2_Lister Imagine=""%COMMANDER_EXE%" /i="%COMMANDER_INI%" /S=L:Pimagine "%1""
Filter2_Lister PhotoViewer=""%COMMANDER_EXE%" /i="%COMMANDER_INI%" /S=L:Pphotoviewer "%1""
Filter2_Lister Internal=""%COMMANDER_EXE%" /i="%COMMANDER_INI%" /S=L:P "%1""
Filter2_Lister Explorer Preview=""%COMMANDER_EXE%" /i="%COMMANDER_INI%" /S=L:T8 "%1""
Filter2_Imagine (wcx)=**png
Filter2_Windows PhotoViewer=rundll32.exe shimgvw.dll,ImageView_Fullscreen %1
Filter2_Imagine=""%COMMANDER_PATH%\PLUGINS\WLX\imagine\Imagine64.exe" "%1""
Filter2_PaintShop Pro="%COMMANDER_PATH%\PROGRAMS\PSP\PSP.EXE" %1
Filter2_IrfanView=""%COMMANDER_PATH%\PROGRAMS\IrfanView\i_view32.exe" "%1""
Filter2_XnView=""%PROGRAMFILES(x86)%\XnView\xnview.exe" "%1""

[Searches]
Imagetypes_SearchFor=*.gif *.jpg *.jpeg *.jpe *.jfif *.png *.bmp *.adi *.cdr *.cgm *.clp *.cut *.dib *.drw *.dxf *.eps *.gem *.hgl *.iff *.img *.jif *.lbm *.mac *.pnt *.pntg *.msp *.pbm *.pcd *.pct *.pcx *.pgm *.pic *.pict *.pct *.plt *.ppm *.psd *.ras *.raw *.rle *.tga *.psp *.tif* *.jp2 *.wdp *.webp *ccx *.heic *.wmf *.dds *.arw
Imagetypes_SearchIn=
Imagetypes_SearchText=
Imagetypes_SearchFlags=0|002002000020|||||||||0000|||
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Axis
Junior Member
Junior Member
Posts: 88
Joined: 2015-07-14, 18:53 UTC

Re: (internal) file associations

Post by *Axis »

petermad wrote: 2022-07-05, 14:28 UTC You would have to set the "Open" field to either * or **
Help wrote:Open
* A single asterisk causes a context menu with all other verbs to be shown when you press Enter
** A double asterisk opens the file with the default system association
Is It still not possible make it with .exe (executable file) files, right (sometimes I would like open .exe with software analysis tools like "EXE Explorer", "pestudio", etc.)?

Thanks
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: (internal) file associations

Post by *petermad »

2Axis
Is It still not possible make it with .exe (executable file) files, right (sometimes I would like open .exe with software analysis tools like "EXE Explorer", "pestudio", etc.)?
Sure, for example like this for opening exe and other binaries with Reshacker:

Code: Select all

Filter14=*.exe *.dll *.wcx* *.wlx* *.wfx* *.wdx* *.sfx
Filter14_open=*
Filter14_ResHacker=""%PROGRAMFILES(x86)%\ResHacker\ResHacker.exe" "%1""
Filter14_Run=**
Then ResHacker will be the first item in the context menu when you right-click on an exe file
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply