Page 2 of 2
Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-15, 17:08 UTC
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?
Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-15, 17:29 UTC
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.
Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-15, 17:56 UTC
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
Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-15, 18:11 UTC
by lelik007
2wanderer
2white
I think, then, I should wait for all these things will be settled down.
Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-15, 18:24 UTC
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...
Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-15, 18:29 UTC
by wanderer
white wrote: 2024-10-15, 17:56 UTCYou mean like this section?
Yup.

I had forgotten that...
Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-16, 08:24 UTC
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
Re: TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-16, 15:21 UTC
by petermad
Implemented in TC 11.50b2
Tested working for ZIP, RAR, TAR, 7-ZIP, GZ, LHA, ACE and TGZ
Re: [implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-17, 06:51 UTC
by ghisler(Author)
I didn't add it for pkzip because people may be using alternatives which don't support the option.
Re: [implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-17, 12:40 UTC
by petermad
2
ghisler(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?
Re: [implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-17, 13:13 UTC
by ghisler(Author)
Parameters like -stl are for packing, not for unpacking.
Re: [implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-17, 13:35 UTC
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
Re: [implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-17, 13:57 UTC
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.
Re: [implemented] TC 11.50 Add support for the -stl parameter for internal 7-Zip packer
Posted: 2024-10-17, 14:35 UTC
by petermad
2
ghisler(Author)
Thanks
