Choose which WCX plugin to use to open an archive

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Can you give an example how this could be handled with %A parameter? How should the command look like?
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

There are some examples of passing parameters to internal commands with parameters via em-commands:

Code: Select all

[em_MultiRename]
cmd=MULTIRENAME
param=%A
[em_LoadSearch]
cmd=LOADSEARCH
param=%A
With such commands I can use tools like TCFS2 for opening rename or search templates, etc.:

Code: Select all

TCFS2 /ef "tem(`em_LoadSearch MySearch`)"
New command could work in same way accepting a parameter for packer extension so it could be used either from TC buttonbars (e.g. OPENARCHIVE 7Z or OPENAS 7Z) or from external tools e.g. in order to open a popup.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Will there be a command or feature for selecting packer plugin for opening archive in TC 9?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The method with internal associations should work now. Example: 7z files, you have 7zip and total7zip plugins installed.

1. Internal associations, add, *.7z
2. Set "open" verb to preferred plugin, e.g. **total7zip
3. Add a verb, e.g. "7zip plugin", and set to: **7zip

Now you can open it with ENTER with total7zip, and context menu key - "7zip plugin" with the 7-zip plugin.

Or alternatively, just add two additional verbs and leave default open empty to not change default association.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

As it was discussed before, internal associations is a bad choice because TC can't inherit menu items from multiple presets. So one will have to add a bunch of such **total7zip items to every internal associations preset...

So internal command with parameter would be much better.
mihail_ms
Junior Member
Junior Member
Posts: 24
Joined: 2024-06-01, 00:00 UTC

Re: Choose which WCX plugin to use to open an archive

Post by *mihail_ms »

**total7zip doesn't work, has something changed?
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Choose which WCX plugin to use to open an archive

Post by *Gral »

What do you mean by "doesn't work"?
Did it work on the same configuration before?
On which version of TC did it work, since which it doesn't?
What operating system are you using, version and bitness?
Is "total7zip" plugin installed, and properly configured?
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Choose which WCX plugin to use to open an archive

Post by *petermad »

2mihail_ms

This is how I have implemented it:

Code: Select all

[PackerPlugins]
7z=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_7z=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7z_7z=223,%COMMANDER_PATH%\PLUGINS\WCX\7zip\7zip.wcx

[Associations]
Filter1=*.7z
Filter1_open=**
Filter1_Internal 7-Zip=**internal_7z
Filter1_Total7zip plugin=**7zip_7z
Filter1_7zip plugin=**7z_7z
Change Filter1 to the number of your filter. Remove 7z_7z entries if you don't have the 7zip plugin installed

Right-click on a .7z file - then you will see these 3 options in the top of the context menu for opening the file:

Internal 7-Zip (*.7z)
Total7zip plugin (*.7z)
7zip plugin (*.7z)

When you have opened the .7z file you can right-click on a file to check which has opened the file at "Packer:"
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
mihail_ms
Junior Member
Junior Member
Posts: 24
Joined: 2024-06-01, 00:00 UTC

Re: Choose which WCX plugin to use to open an archive

Post by *mihail_ms »

Я понял спасибо. трудности перевода надо расширение писать , а не имя плагина..

Moderator message from: white » 2024-10-31, 17:12 UTC

Translation:
I understand, thank you. Translation difficulties, you need to write the extension, not the plugin name.
2mihail_ms
Please only use English in this subforum.
Post Reply