zip2 2.2.0
dotnet tool install --global zip2 --version 2.2.0
dotnet new tool-manifest
dotnet tool install --local zip2 --version 2.2.0
#tool dotnet:?package=zip2&version=2.2.0
nuke :add-package zip2 --version 2.2.0
zip2
v2.2.0
Example:
List
zip2 ..\backup.zip
zip2 ..\backup2.rar
zip2 ..\test3.epub -Zv
zip2 ..\backup4.tar
Extract
zip2 ..\backup.zip -x
zip2 ..\backup2.rar -x
zip2 ..\test3.epub -Zx
zip2 ..\backup4.tar
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 -
On-line Help
List zip2 -t?
Extract zip2 -x?
Create zip2 -c?
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.tar -tv [OPTION ..] [FILE ..]
zip2 FILENAME.zip -x [OPTION ..] [FILE ..]
zip2 FILENAME.rar -x [OPTION ..] [FILE ..]
zip2 FILENAME.tar -x [OPTION ..] [FILE ..]
Specify Zip filename by option --file
zip2 [OPTION ..] -cf NEW-ZIP-FILENAME [OPTION ..] [FILE ..]
zip2 [OPTION ..] -tvf FILENAME [OPTION ..] [WILD ..]
zip2 [OPTION ..] -xf FILENAME [OPTION ..] [WILD ..]
Credit:
- SharpZipLib v1.4.2
- SharpCompress v0.50.1
2021, 2026 (c) Yung, Chun Kau
yung.chun.kau@gmail.com
| Product | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
See <https://github.com/ck-yung/zip2/blob/main/History.md> for feature history.
v2.2.0.0
1. Update to NET10.0
2. Update package SharpCompress to v0.50.1
3. Read console input (stdin) to "List" and "Extract" command if "--file" is -
4. Write console output (stdout) to "Create" command if "--file" is -
5. Support ```.tar``` and ```.tar.gz```
v2.1.1.0
1. Add feature for command "List" as the default command.
2. Option output dir "--out-dir","-O" takes "=" for console output (stdout).
3. New option "--multi-vol","-m" is added for RAR archive files.
4. Take first command line arg as "ZIP-FILENAME" if "--file","-f" is NOT given
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.
v2.1.0.0
Update to .NET 8