How to use get rid of the yellow box icon for packer plugins

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 16101
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

How to use get rid of the yellow box icon for packer plugins

Post by *petermad »

In TC 7.50rc1 a new feature is described in the help file (not in history.txt though):
Dialog box: Edit file type (internal associations)

Open
**ext Use packer plugin defined for extension "ext" to view contents of file
I have some observations concerning this feature:

1. If the extension of the file is already associated with a packer plugin, then this feature only has an effect when [Packer] ZIPlikeDirectory=0.

2. It seems that already defined packer plugin extensions takes precedence when defining the internal association:
Type name: *.aes
Open: **7z
results in TC opening the file with aes-plugin not the 7z-plugin.

3. If the filetype is not in the list of defined packer extensions then TC tries to use the internal associated plugin:
Type name: *.æøå
Open: **7z
then TC tries to open the file with 7z.

4. in the latter example it is possible to change the icon for the file type.


5. So the yellow box icon for .7z files for example can be changed like this:

Change:

Code: Select all

[PackerPlugins]
7z=95,%COMMANDER_PATH%\PLUGINS\WCX\7zip\7zip.wcx
to:
my_7z=95,%COMMANDER_PATH%\PLUGINS\WCX\7zip\7zip.wcx
Make this internal association:

Code: Select all

[Associations]
Filter1=*.7z
Filter1_open=**my_7z
Filter1.icon=%ProgramFiles%\7-Zip\7zFM.exe
Paths and filter number has to be adapted to the current system. TC has to be restarted.


A drawback doing this is that you have to manually change the extension from my_7z to 7z for files that you pack with the plugin from now on.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Postkutscher
Power Member
Power Member
Posts: 556
Joined: 2006-04-01, 00:11 UTC

Re: How to use get rid of the yellow box icon for packer plu

Post by *Postkutscher »

petermad wrote:Change:

Code: Select all

[PackerPlugins]
7z=95,%COMMANDER_PATH%\PLUGINS\WCX\7zip\7zip.wcx
to:
my_7z=95,%COMMANDER_PATH%\PLUGINS\WCX\7zip\7zip.wcx
drawback: doing this is that you have to manually change the extension from my_7z to 7z for files that you pack with the plugin from now on.
Change:
7z=95,%COMMANDER_PATH%\PLUGINS\WCX\7zip\7zip.wcx
to:
7z=351,%COMMANDER_PATH%\PLUGINS\WCX\7zip\7zip.wcx

and you will not have any drawback.

(While I still don`t understand why do you want to get rid of the yellow box icon.) :)
User avatar
petermad
Power Member
Power Member
Posts: 16101
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

7z=351
Great, why didn't I think of that :oops:
While I still don`t understand why do you want to get rid of the yellow box icon.
I don't - but apparantly a lot of people do.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

What do the 95|351 represent in the above examples...

And I don't see how this will help if you want WinRar to handle your archives and not let TC internally w/ "plugins". As I do not want TC to handle archives for unpacking, about the only use I have usually, is to browse into an archive prior to winRar unpacking.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Balderstrom
Those numbers are the sums of values:
help file wrote:1: Can create new archives
2: Can modify existing archives
4: Can handle multiple files in one archive
8: Can delete files from archive
16: Supports the options dialog
32: Supports packing in memory
64: Detects archive type by content
128: Allows searching for text in archives
256: Don't open with Enter, only with Ctrl+PgDn
512: Supports encryption
So:

95 + 256 (don't open with Enter) = 351
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

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

Post by *ghisler(Author) »

2. It seems that already defined packer plugin extensions takes precedence when defining the internal association:
Type name: *.aes
Open: **7z
results in TC opening the file with aes-plugin not the 7z-plugin.
This happens when a plugin cannot open a file of the specified type (here, 7z cannot open aes plugin).
Author of Total Commander
https://www.ghisler.com
Post Reply