ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] Archival Connection   [Help!]

By: Laurent Duchastel     Montréal, Québec  
Date: Jun 06,2020 at 09:44
In Response to: [Help!] Archival Connection (Bernhard Steffen)

> I've been using info-zip command line tools for years. Just unpack
> their unzip.exe into ZTree folder and use the "Zip/UnZip 3.0/6.0 [LFN]"
> archiver entry. If you want to zip as well, you can extract zip.exe and
> zipcloak.exe additionally.
>
> Download links for the binaries are provided on their sourceforge
> project site:
> https://sourceforge.net/p/infozip/support-requests/4/
> (Their older www.info-zip.org website does not seem to be maintained
> any longer, but downloads on ftp://ftp.info-zip.org seem to be fine
> still.)

Actually, I use 7z for its zip capabilities


;========================= Archiver Entries Begin =============================
; This entry is for 7-Zip 18.05
;
; Full paths are not supported in Global mode, as drive letters are omitted by
; the [NAP] switch (http://sourceforge.net/forum/message.php?msg_id=2956956).
;
; Add '-mx9' to the 'a' add lines for maximum compression.
; Add '-ms=off' to the 'a' add lines to turn off creation of solid archives
; which allows individual files to be deleted inside the archive afterwards.
;
; Visit http://www.7-zip.org
;
7-Zip 18.05 for zip [LFN,UNICODE,NAP]
ZIP
0
7z.exe l
7z.exe e -y -tzip
7z.exe x -y -tzip

7z.exe a -tzip -stl @list
7z.exe a -tzip -stl @list



7z.exe d @list
PK\x3\x4
------------------- ----- ------------ ------------ ------------------------
------------------- ----- ------------ ------------ ------------------------
2
3
0
1
4
;-----------------------------------------------------------------------------


and F9 versions:


::Z ZIP [branch] | KEEP | PLAIN
REM #ZTStart "Archiving"
COLOR 1F

:: a Add to Archive
:: -r Recurse subfolders
:: -v100m Create volumes 100mb
:: -stl Set archive time to newest file
:: -mx x (0 | 1 | 3 | 5 | 7 | 9)
:: -p[pwd] Encrypt both file and headers
:: -mhe Encrypt headers
:: -sdel Delete files after archiving

#ZTTools\7z.exe a "%3.zip" * -r -mx9 -stl


::- ZIP [branch] | DEL | PLAIN
REM #ZTStart "Archiving"
COLOR 1F

:: a Add to Archive
:: -r Recurse subfolders
:: -v100m Create volumes 100mb
:: -stl Set archive time to newest file
:: -mx x (0 | 1 | 3 | 5 | 7 | 9)
:: -p[pwd] Encrypt both file and headers
:: -mhe Encrypt headers
:: -sdel Delete files after archiving

#ZTTools\7z.exe a "%3.zip" * -r -mx9 -stl -sdel


::- TEST Single ZIP %1
REM #ZTStart "Testing"
COLOR 1F

:: t Test Archive
:: -r Recurse subfolders

#ZTTools\7z.exe t "%1" * -r
pause


::- TEST ALL ZIP
REM #ZTStart "Testing"
COLOR 1F

:: t Test Archive
:: -r Recurse subfolders

#ZTTools\7z.exe t *.zip * -r
pause


::X UnPACK single ZIP %1 {subdir}
REM #ZTStart "Extract"
COLOR 1F

:: x Extract with full paths
:: -r Recurse subfolders
:: -o Set output directory

#ZTTools\7z.exe x "%1" * -o* -r
pause


::- UnPACK ALL ZIP {subdir}
REM #ZTStart "Extract"
COLOR 1F

:: x Extract with full paths
:: -r Recurse subfolders
:: -o Set output directory

#ZTTools\7z.exe x *.zip * -o* -r


::- UnPACK ALL ZIP {current} [Overwrite]
REM #ZTStart "Extract"
COLOR 1F

:: x Extract with full paths
:: -r Recurse subfolders
:: -o Set output directory
:: -ao Overerite [a=All | s=Skip | u=AutoRename extracting | t=AutoRename existing]

#ZTTools\7z.exe x *.zip * -aou -r


Laurent Duchastel

241 views      
 

Messages in this Thread

 
95,102 Postings in 11,991 Threads, 350 registered users, 78 users online (0 registered, 78 guests)
Index | Admin contact |   Forum Time: Sep 26, 2020 - 9:37 pm EDT  |  Hits:34,282,489  (23,335 Today )
RSS Feed