Switch between packer plugins inside a file

English support forum

Moderators: white, Hacker, petermad, Stefan2

ggggnnnn
Junior Member
Junior Member
Posts: 29
Joined: 2004-05-28, 17:26 UTC

Switch between packer plugins inside a file

Post by *ggggnnnn »

Hello everyone.

Is there a way to switch between packer plugins inside a file, when the file is supported by more than one plugins?
You can do this with lister plugins by pressing 4.
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Switch between packer plugins inside a file

Post by *Stefan2 »

What do you mean by "switch between packer plugins inside a file" ?

Your wanted workflow?



 
ggggnnnn
Junior Member
Junior Member
Posts: 29
Joined: 2004-05-28, 17:26 UTC

Re: Switch between packer plugins inside a file

Post by *ggggnnnn »

Stefan2 wrote: 2018-09-14, 20:17 UTC What do you mean by "switch between packer plugins inside a file" ?

Your wanted workflow?
Say I have both urlData and WordArc installed.

Both support html, and extract different content.
Currently I can only switch between them by changing their order in wincmd.ini.
A way to quickly switch between them inside Total Commander without restarting is what I want.
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Switch between packer plugins inside a file

Post by *Stefan2 »

Such packer plugins are handled by the PACK-dialog (Alt+F5)

How-to:
- select the supported file
- Alt+F5
- On the right there is a area to chose the archive-tool and also a drop-down menu to chose a WCX packer plugin.
After choosing the right plugin, maybe it can be [Configure]ed too, read the read.me
- on default it will pack/extract to the target panel, but you can also modify the path shown in the box on the top.


HTH? :D
ggggnnnn
Junior Member
Junior Member
Posts: 29
Joined: 2004-05-28, 17:26 UTC

Re: Switch between packer plugins inside a file

Post by *ggggnnnn »

Stefan2 wrote: 2018-09-14, 21:09 UTC Such packer plugins are handled by the PACK-dialog (Alt+F5)

How-to:
- select the supported file
- Alt+F5
- On the right there is a area to chose the archive-tool and also a drop-down menu to chose a WCX packer plugin.
After choosing the right plugin, maybe it can be [Configure]ed too, read the read.me



HTH? :D
I am not talking about packing.

I am talking about unpacking.
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Switch between packer plugins inside a file

Post by *Stefan2 »

Just try it !




The PACK-dialog is re-used for to handle WCX plugins.


 
ggggnnnn
Junior Member
Junior Member
Posts: 29
Joined: 2004-05-28, 17:26 UTC

Re: Switch between packer plugins inside a file

Post by *ggggnnnn »

Stefan2 wrote: 2018-09-14, 21:19 UTC Just try it !

The PACK-dialog is re-used for to handle WCX plugins.
I know you can use different plugins with the the pack dialog. I don't want to use the plugin for packing.

I want to see the contents of the file. Plugins can return different content.
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Switch between packer plugins inside a file

Post by *Gral »

You can use Internal Associations for this purpose, but this is possible not INSIDE, but OUTSIDE the file (displaying small menu with packer plugins)
You need manual modify of your [Associations] section, addding some entry reffering to [PackerPlugins] section.
Here is some parts from my INI(s) files. Configuration for two types of files:
1) executable e.g. EXE files, simple version just for EXE and DLL (while actually i use commented here version - it's reffers to [Searches] section and use content identification)
2) Disk images e.g. IMG files.
I think it's self-explaining, ask for clarification if you miss something.

Code: Select all

[Associations]
Filter3=*.exe *.dll
;Filter3=>PE Executables(Win32)
Filter3.icon=%1
Filter3_open=*
Filter3_7z	(Packer Plugin)=**7z
Filter3_FAR	(Packer Plugin)=**far
Filter3_Icon Library	(Packer Plugin)=**icl
Filter3_Resource Extractor	(Packer Plugin)=**pe
Filter3_WCRES	(Packer Plugin)=**ex!

Filter17=*.img
Filter17_open=*
Filter17_Total7zip	(Packer Plugin)=**vhd
Filter17_Imaginator	(Packer Plugin)=**imaginator
Filter17_ImgRead	(Packer Plugin)=**imgread
Filter17_UnImz	(Packer Plugin)=**unimz

[PackerPlugins]

ex!=0,%COMMANDER_PATH%\PLUGINS\WCX\WCRES\WCRES.WCX
far=207,%COMMANDER_PATH%\PLUGINS\WCX\FAR\FAR2WC.WCX
7z=735,%COMMANDER_PATH%\PLUGINS\WCX\TOTAL7ZIP\0856\Total7zip.wcx
icl=271,%COMMANDER_PATH%\PLUGINS\WCX\ICLREAD\ICLREAD.WCX
pe=479,%COMMANDER_PATH%\PLUGINS\WCX\RESEXTRACT\ResExtract.wcx

imaginator=31,%COMMANDER_PATH%\PLUGINS\WCX\IMAGINATOR\2.03\IMG.WCX
imgread=0,%COMMANDER_PATH%\PLUGINS\WCX\IMGREAD\IMGREAD.WCX
unimz=0,%COMMANDER_PATH%\PLUGINS\WCX\UNIMZ\UNIMZ.WCX
vhd=735,%COMMANDER_PATH%\PLUGINS\WCX\TOTAL7ZIP\0856\Total7zip.wcx
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Switch between packer plugins inside a file

Post by *Stefan2 »

ggggnnnn wrote: 2018-09-14, 21:39 UTC I want to see the contents of the file.
>> see the contents

Where to see?

Again: tell us your workflow.
You select a file with which extension?
Next you want to get?
- Extract content via Alt+F5 Pack.dialog >>>WCX Packer plugin
- See content in F3 Lister (or for "Quick View") >>>WLX Lister plugin
- Add content to columns of List view (or for use in MRTool or Search) >>>WDX Content plugin


I don't get it from your post till now.
But it's just me, since I didn't work that way, 2Gral seems to understood you? :roll:


 
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Switch between packer plugins inside a file

Post by *Gral »

2 Stefan2
Yes, i understand.
Just read "Dialog box: Edit file type (internal associations)" in help, especially:

Code: Select all

Open [..]
**ext Use packer plugin defined for extension "ext" to view contents of file
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Switch between packer plugins inside a file

Post by *Stefan2 »

Thank you 2Gral



ATTENTION this post was a wrong assumption , read more below, please skip this post.




That means not only can you use "WLX Lister plugin" in Lister (or "Quick View")

but also "WCX Packer plugins" if you add them via "internal associations (TC only)"
for that extension in question and use "**ext" as Open command.

Like '**'+'ext', f.ex.: **7z or **icl or **txt what ever you had defined as ext for that WCX.
See "Configuration > Options... > Plugins > WCX [Configure] > file type drop-down menu"
[yes, you have to install the WCX beforehand or know how to modify the wincmd.ini as Gral shows]


(You also can add several plugins to one extension via [New...]. )


And next you can switch that plugins (WLX and WCX) in Lister by pressing the '4'-keyboard key?



Tested, that really works :mrgreen:
EDIT: I was mistaken, what I saw was Imagine :cry: Still '4' doesn't switch to WCX for my test. I tested ICL and CHM right now, incl. TC restart.

2Gral
Gral wrote: 2018-09-15, 04:44 UTC You can use Internal Associations for this purpose, but this is possible not INSIDE,
but OUTSIDE the file (displaying small menu with packer plugins)
>> displaying small menu with packer plugins

What does that means? What "small menu"? Where? Me think I only know '4'?





I never need and so never use that, so thank you Gral very much! I will add that to the F A Qs

- - -

Had anybody tested if you are able to sort the entries in the "Edit file type"-dialog by drag&drop to make one plugin the default?
Does that work?
Or did I misinterpreted that?
I on my own would have to test and check the wincmd.ini, but if anybody knows already, please share your skills, THX.


 
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Switch between packer plugins inside a file

Post by *Gral »

2 Stefan2
First of all - please, do not make a mess
Second - read, think, imagine - we can view content of packed file in FILE PANEL, not Lister window!
ggggnnnn
Junior Member
Junior Member
Posts: 29
Joined: 2004-05-28, 17:26 UTC

Re: Switch between packer plugins inside a file

Post by *ggggnnnn »

Gral wrote: 2018-09-15, 04:44 UTC You can use Internal Associations for this purpose, but this is possible not INSIDE, but OUTSIDE the file (displaying small menu with packer plugins)
You need manual modify of your [Associations] section, addding some entry reffering to [PackerPlugins] section.
Here is some parts from my INI(s) files. Configuration for two types of files:
1) executable e.g. EXE files, simple version just for EXE and DLL (while actually i use commented here version - it's reffers to [Searches] section and use content identification)
2) Disk images e.g. IMG files.
I think it's self-explaining, ask for clarification if you miss something.

Code: Select all

[Associations]
Filter3=*.exe *.dll
;Filter3=>PE Executables(Win32)
Filter3.icon=%1
Filter3_open=*
Filter3_7z	(Packer Plugin)=**7z
Filter3_FAR	(Packer Plugin)=**far
Filter3_Icon Library	(Packer Plugin)=**icl
Filter3_Resource Extractor	(Packer Plugin)=**pe
Filter3_WCRES	(Packer Plugin)=**ex!
[PackerPlugins]

ex!=0,%COMMANDER_PATH%\PLUGINS\WCX\WCRES\WCRES.WCX
far=207,%COMMANDER_PATH%\PLUGINS\WCX\FAR\FAR2WC.WCX
7z=735,%COMMANDER_PATH%\PLUGINS\WCX\TOTAL7ZIP\0856\Total7zip.wcx
icl=271,%COMMANDER_PATH%\PLUGINS\WCX\ICLREAD\ICLREAD.WCX
pe=479,%COMMANDER_PATH%\PLUGINS\WCX\RESEXTRACT\ResExtract.wcx

Thanks this worked 👍
I had a little trouble getting it to work at first until I figured out that every plugin must have a different extension defined in wincmd.ini to work, (I had both defined as html)

A way to do this automatically like lister plugins would be nice however, I may add a feature request for this.
Stefan2 wrote: 2018-09-15, 08:09 UTC Where to see?

Again: tell us your workflow.
Workflow:
Press CTRL+Page Down on an html file to see its contents (or just press Enter if the packer plugin allows that).

Maybe its the html part that its confusing you. You can do this on an exe file as well like Gral has posted above. With his method you can see different contents with each plugin.
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Switch between packer plugins inside a file

Post by *Stefan2 »

Gral wrote: 2018-09-15, 10:11 UTC we can view content of packed file in FILE PANEL, not Lister window!
ggggnnnn wrote: 2018-09-15, 11:17 UTC Workflow:
Press CTRL+Page Down on an html file to see its contents (or just press Enter if the packer plugin allows that).

>> in FILE PANEL
>> CTRL+Page Down or Enter
So this is to handle packed files as like folders in TC, to "go inside the file to show the content", same as with ZIP-archive?




Now that works for me, thank you both!

Still don't know what that means: "displaying small menu with packer plugins".
Still don't know what that means: "on an html file to see its contents"... for that I would use F3, no? (I have test with *.chm, here I understood this workflow)
Now your comments start to make sense too, I will read from top now again, still have to do some testing then.

 
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Switch between packer plugins inside a file

Post by *Gral »

Once again - from TC help
(mk:@MSITStore:TOTALCMD.CHM::/dialog_box__edit_file_type_internal.htm)

Open
Program used for the 'open' action. This is always the default verb (used when pressing ENTER) for internal associations. You need to put %1 or "%1" (or %2) behind the program name so the file is passed as a parameter. The difference between %1 and %2 only appears when right clicking on multiple files. Choosing an internal command with %1 will open all selected files in separate editors, while %2 will pass them all to the same program. This will of course only work when that editor can accept multiple files as parameters.
There are some special commands defined for internal associations:
* 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
*verb An asterisk followed by a verb opens the file with the specified system verb (e.g. open)
**ext Use packer plugin defined for extension "ext" to view contents of file
Post Reply