An easy way to view packed contents through toolbar?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
luoganda
Junior Member
Junior Member
Posts: 7
Joined: 2016-10-11, 15:38 UTC
Contact:

An easy way to view packed contents through toolbar?

Post by *luoganda »

Is there an easy way to view zipped contents through toolbar?

Let's say there is a dir with 3batches - unpacked

Let's say toolbar has a user command:
  • Command: cmd
    and parameter:/c %P%N
    One of the batches can be dropped on userTool and it will be accepted
But what about these 3batches zipped - the same functionality?
And all three should be unzipped because one of them depends on other.
Through temp folder or something?
There is a %P%N %Z, but when one of the files is dropped there,
it says 'The function can not be used with packed files!'
User avatar
nsp
Power Member
Power Member
Posts: 1951
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: An easy way to view packed contents through toolbar?

Post by *nsp »

luoganda wrote:Is there an easy way to view zipped contents through toolbar?

Let's say there is a dir with 3batches - unpacked

Let's say toolbar has a user command:
  • Command: cmd
    and parameter:/c %P%N
    One of the batches can be dropped on userTool and it will be accepted
But what about these 3batches zipped - the same functionality?
And all three should be unzipped because one of them depends on other.
Through temp folder or something?
There is a %P%N %Z, but when one of the files is dropped there,
it says 'The function can not be used with packed files!'
Drag and drop to the toolbar does not works from packed folder !
No luck to do it like you want from the toolbar :(

Using View or Edit will not work as you need more than one file to be unpacked.

In your case, THE COMPLETE ARCHIVE need to be unpacked in temp folder and then execute the file you chose... using %Z%P%N can helps you but you will have to unzip yourself navigate and run using the info passed by the %Z%P%N parameter...
luoganda
Junior Member
Junior Member
Posts: 7
Joined: 2016-10-11, 15:38 UTC
Contact:

Post by *luoganda »

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...
User avatar
nsp
Power Member
Power Member
Posts: 1951
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

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 ....
luoganda
Junior Member
Junior Member
Posts: 7
Joined: 2016-10-11, 15:38 UTC
Contact:

Post by *luoganda »

It was meant to extract 'selected' file and all contents - like tc
does - and get that info, but... aha
Post Reply