Page 1 of 1

[TC 11.50b1] ZIPFROMLIST for 7zip

Posted: 2024-10-11, 18:37 UTC
by funkymonk
It's great to have native 7zip support since TC 11.50b1! Thank you.

Now, it would be great if ZIPFROMLIST would support 7zip, too.
Either as a parameter to choose between zip/7zip or as a separate command.

Re: [TC 11.50b1] ZIPFROMLIST for 7zip

Posted: 2024-10-12, 07:53 UTC
by hi5
A parameter would be logical so it would be possible to call all other packers e.g. rar, arj etc.

Re: [TC 11.50b1] ZIPFROMLIST for 7zip

Posted: 2024-10-12, 08:20 UTC
by funkymonk
hi5 wrote: 2024-10-12, 07:53 UTC A parameter would be logical so it would be possible to call all other packers e.g. rar, arj etc.
Even better...
(However, I don't really expect support for arbitrary packers in ZIPFROMLIST. In fact, I think it would be a lot of effort to support all ZFL parameters for all possible packers.)

Re: [TC 11.50b1] ZIPFROMLIST for 7zip

Posted: 2024-10-12, 10:04 UTC
by Horst.Epp
The syntax of 7z allows making a button which also sets all desired parameters.
Nevertheless, I support the request to add 7zip to the ZIPFROMLIST.

I use a button like this to pack from a TC selection.
This can easily be changed to pack from a list by replacing the %UL with the path to the list.

Code: Select all

TOTALCMD#BAR#DATA
"C:\Program Files\7-Zip\7z.exe"
a "%T%B"_%|$DATE:YMD_hm| @%UL -aoa -mmt -mx9 -ssw -stl -ssp -y
C:\Program Files\7-Zip\7zFM.exe
Pack selected

0
-1

Re: [TC 11.50b1] ZIPFROMLIST for 7zip

Posted: 2024-10-13, 07:50 UTC
by ghisler(Author)
You can also use cm_PackFiles instead of ZIPFROMLIST.

Re: [TC 11.50b1] ZIPFROMLIST for 7zip

Posted: 2024-10-13, 15:22 UTC
by petermad
2ghisler(Author)
Can cm_PackFiles pack from a listfile?

Implementing for ZIPFROMLIST could be as simple at to use 7-Zip if the type of the stated archive is set to .7z

Re: [TC 11.50b1] ZIPFROMLIST for 7zip

Posted: 2024-10-14, 15:25 UTC
by ghisler(Author)
Can cm_PackFiles pack from a listfile?
No it can't - you could make a search and then feed the result to a panel before calling cm_PackFiles. ZIPFROMLIST would be useful, but the functions to do it aren't yet there, so it would take a while to implement.

Re: [TC 11.50b1] ZIPFROMLIST for 7zip

Posted: 2024-10-14, 15:35 UTC
by funkymonk
ghisler(Author) wrote: 2024-10-14, 15:25 UTC ZIPFROMLIST would be useful, but the functions to do it aren't yet there, so it would take a while to implement.
That would be great!