[implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

lelik007
Member
Member
Posts: 173
Joined: 2021-04-20, 06:37 UTC

Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *lelik007 »

I'm sorry for asking right here but IDK where to ask: are the certain parameters allowed for the internal 7-zip packer and the other are not? Or how to know which one isn't allowed, then? For example, if I wrote -myv=1900 in Extra Parameters did affect intenal 7-zip packing in any way?
User avatar
wanderer
Power Member
Power Member
Posts: 1640
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *wanderer »

lelik007 wrote: 2024-10-15, 17:08 UTChow to know which one isn't allowed
Christian will probably write something in Help for it, as he has done for zip packer. This is a new section (7zip) in Options, so no help exists for it yet.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *white »

wanderer wrote: 2024-10-15, 17:29 UTC This is a new section (7zip) in Options, so no help exists for it yet.
You mean like this section? :
petermad wrote: 2024-10-09, 23:08 UTC The Help button (and F1) in the "7Zip packer" configuration dialog does not work - although there is a help for the item: hh.exe %COMMANDER_PATH%\TOTALCMD.CHM::dlg_internal7zipconfig.htm
lelik007
Member
Member
Posts: 173
Joined: 2021-04-20, 06:37 UTC

Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *lelik007 »

2wanderer
2white
I think, then, I should wait for all these things will be settled down.
User avatar
wanderer
Power Member
Power Member
Posts: 1640
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *wanderer »

lelik007 wrote: 2024-10-15, 18:11 UTCI think, then, I should wait for all these things will be settled down.
It would probably be a good idea. After all, this is still a beta version so there are things that are under development and may change (or not work properly yet). You can always post you opinion though if you feel it may help...
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
wanderer
Power Member
Power Member
Posts: 1640
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *wanderer »

white wrote: 2024-10-15, 17:56 UTCYou mean like this section?
Yup. :) I had forgotten that...
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *ghisler(Author) »

-stl isn't supported by the 7z.dll library, I have to implement it myself (and will do this in beta 2). Currently only two types of parameters are supported:
-v to set the volume size
-m to set the compression parameters
You can find the -m parameters documented here:
https://documentation.help/7-Zip-18.0/method.htm#7Z
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *petermad »

Implemented in TC 11.50b2 :-)

Tested working for ZIP, RAR, TAR, 7-ZIP, GZ, LHA, ACE and TGZ
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *ghisler(Author) »

I didn't add it for pkzip because people may be using alternatives which don't support the option.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *petermad »

2ghisler(Author)

I don't have a 32bit PKzip / PKUnzip, but I have an alternative 32bit unzip.exe

When I try to use that unzip.exe instead of the internal unzip I get the error message: "Wrong parameters specified".

Here are the parameters for unzip.exe:

Code: Select all

UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
  Default action is to extract files in list, except those in xlist, to exdir;
  file[.zip] may be a wildcard.  -Z => ZipInfo mode ("unzip -Z" for usage).

  -p  extract files to pipe, no messages     -l  list files (short format)
  -f  freshen existing files, create none    -t  test compressed archive data
  -u  update files, create if necessary      -z  display archive comment only
  -v  list verbosely/show version info       -T  timestamp archive to latest
  -x  exclude files that follow (in xlist)   -d  extract files into exdir
modifiers:
  -n  never overwrite existing files         -q  quiet mode
  -o  overwrite files WITHOUT prompting      -a  auto-convert any text files
  -j  junk paths (do not make directories)   -aa treat ALL files as text
  -C  match filenames case-insensitively     -L  make (some) names lowercase
  -$  label removables (-$$ => fixed disks)  -V  retain VMS version numbers
  -X  restore ACLs (-XX => use privileges)   -s  spaces in filenames => '_'
                                             -M  pipe through "more" pager
See "unzip -hh" or unzip.txt for more help.  Examples:
  unzip data1 -x joe   => extract all files except joe from zipfile data1.zip
  unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer

and here it is for my 16bit PKUnzip:

Code: Select all

PKUNZIP (R)    FAST!    Extract Utility    Version 2.50   03-01-1999
Copr. 1989-1999 PKWARE Inc.  All Rights Reserved.  Shareware Version
PKUNZIP Reg. U.S. Pat. and Tm. Off.

Usage:  PKUNZIP [options] zipfile [@list] [files...]

-c[m]             extract files to Console [with More]
-d                restore/create Directory structure stored in .ZIP file
-e[c|d|e|n|p|r|s] Extract files.  Sort by [CRC | Date | Extension | Name
                   | Percentage | Reverse | Size]
-f                Freshen files in destination directory
-j|J<a,h,r,s>     mask|don't mask <Hidden/System/Readonly> files (def.=jahrs)
-n                extract only Newer files
-o                Overwrite previously existing files
-p[a/b][c][#]     extract to Printer [Asc mode,Bin mode,Com port] [port #]
-q                Enable ANSI comments
-s[pwd]           Decrypt with password [If no pwd is given, prompt for pwd]
-t                Test .ZIP file integrity
-v[b][r][m][t]    View .ZIP [Brief][Reverse][More][Technical] sort by [CRC|
  [c,d,e,n,o,p,s] Date|Extension|Name|natural Order(default)|Percentage|Size]
-x<filespec>      eXclude file(s) from extraction
-$                Restore volume label on destination drive
-@listfile        Generate list file
What parameter are you using, for external unzip, that my unzip.exe does not support?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *ghisler(Author) »

Parameters like -stl are for packing, not for unpacking.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *petermad »

ghisler(Author) wrote: 2024-10-17, 13:13 UTC Parameters like -stl are for packing, not for unpacking.
I know - I was just curious which parameters you pass to the external unpacker
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *ghisler(Author) »

Main differences seem to be:
@listfile for list of files to be extracted with pkunzip vs <listfile in unzip.
-d to preserve path structure in pkunzip vs the opposite in unzip (-j do not extract relative paths.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer

Post by *petermad »

2ghisler(Author)
Thanks :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply