Quantcast
Channel: Total Commander
Viewing all articles
Browse latest Browse all 18755

Eng :: RE: An easy way to view packed contents through toolbar?

$
0
0
Author: nsp
Posted: Fri Dec 09, 2016 2:50 am (GMT -6)

luoganda wrote:
Is there an easy way - almost same as above, that when clicking user button the zipped contents are unpacked by tc to 'temp' folder - and i can use some switch where that contents are(something like %P%N)?
Something like cm_unpackFiles?
Has cm_unpackFiles any params to be specified, so that the process is automated and not shown?
Docs says multiple internal commands can be specified and separated by , - what about mixing internal - external - multiple?

One way would be to just simulate this through cm_Return and UnpackAll - if there is some option to get location of that contents...

in short NO !

Internal unpack does not take any parameter and only works when you select or focus on a packed file.

With TC, you can add multiple commands but it is not possible to pass parameter to intermediate command. // you can anyhow use em_command (user command).

As said you have to handle it in a script.
Let say you get as parameter : D:\FOLDER\MyPackedFile.ZIP\FOLDER\in\ZIP\toto.bat
you will have to detect that D:\FOLDER\MyPackedFile.ZIP is a packed file and then use an utility to unpack it in a temp folder with directory structure
navigate to the extracted archive folder and then to \FOLDER\in\ZIP\ and finally execute toto.bat
once finished do not forget to cleanup all extracted data !

The simple case when no dependency are needed, can be covered by a dedicated lister or editor using F3/F4/AlfF3 ....


Viewing all articles
Browse latest Browse all 18755

Trending Articles