Choose which WCX plugin to use to open an archive
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
There are some examples of passing parameters to internal commands with parameters via em-commands:
With such commands I can use tools like TCFS2 for opening rename or search templates, etc.:
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.
Code: Select all
[em_MultiRename]
cmd=MULTIRENAME
param=%A
[em_LoadSearch]
cmd=LOADSEARCH
param=%A
Code: Select all
TCFS2 /ef "tem(`em_LoadSearch MySearch`)"
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
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
https://www.ghisler.com
Re: Choose which WCX plugin to use to open an archive
**total7zip doesn't work, has something changed?
Re: Choose which WCX plugin to use to open an archive
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?
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?
Re: Choose which WCX plugin to use to open an archive
2mihail_ms
This is how I have implemented it:
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:"
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
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
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
Re: Choose which WCX plugin to use to open an archive
Я понял спасибо. трудности перевода надо расширение писать , а не имя плагина..
Moderator message from: white » 2024-10-31, 17:12 UTC
Translation:
Please only use English in this subforum.
2mihail_msI understand, thank you. Translation difficulties, you need to write the extension, not the plugin name.
Please only use English in this subforum.