zip2 2.1.1

dotnet tool install --global zip2 --version 2.1.1                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local zip2 --version 2.1.1                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=zip2&version=2.1.1                
nuke :add-package zip2 --version 2.1.1                

zip2

v2.1.1

Example:

List

zip2 ..\backup.zip
zip2 ..\backup2.rar
zip2 ..\test3.epub -Zv

Extract

zip2 ..\backup.zip -x
zip2 ..\backup2.rar -x
zip2 ..\test3.epub -Zx

Create Zip

Backup files in dir src, which timestamp is within 2 hours, into a new zip file.

dir2 src -bsk --within 2hour | zip2 -cf ..\new.zip -T -

Syntax:

Zip filename is the first parameter

zip2 -c NEW-ZIP-FILENAME [OPTION ..] [FILE ..]

zip2 FILENAME.zip -tv [OPTION ..] [FILE ..]
zip2 FILENAME.rar -tv [OPTION ..] [FILE ..]

zip2 FILENAME.zip -x  [OPTION ..] [FILE ..]
zip2 FILENAME.rar -x  [OPTION ..] [FILE ..]

Specify Zip filename by option --file

zip2 [OPTION ..] -cf NEW-ZIP-FILENAME [OPTION ..] [FILE ..]

zip2 [OPTION ..] -tvf FILENAME.zip [OPTION ..] [WILD ..]
zip2 [OPTION ..] -tvf FILENAME.rar [OPTION ..] [WILD ..]

zip2 [OPTION ..] -xf FILENAME.zip [OPTION ..] [WILD ..]
zip2 [OPTION ..] -xf FILENAME.rar [OPTION ..] [WILD ..]

Link to Feature Changes

Credit:

  • SharpZipLib v1.4.2
  • SharpCompress v0.34.2

2021, 2023 (c) Yung, Chun Kau

yung.chun.kau@gmail.com

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
2.1.1 110 4/15/2024
2.1.0 136 11/16/2023
2.0.2.1 303 1/27/2023
2.0.2 277 1/27/2023
2.0.1 297 1/12/2023
2.0.0 285 1/11/2023
0.9.3 338 11/11/2021
0.9.2 300 11/8/2021
0.9.1 326 11/4/2021
0.9.0 374 10/31/2021

v2.1.0.0
Update to .NET 8
v2.0.2.2
1. Accept wild filename to '--file'. (Windows OS)
e.g. zip2 -tvf obj\backup*.zip
2. Add option "--format" to list and Extract command.
3. Option "--show-crc" is added to List command.
4. Shadow filenames are used to Create and Extract commands.
5. Add option "--no-time" to Exract command.
See <https://github.com/ck-yung/zip2/blob/main/History.txt> for feature history.