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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package zip2 --version 2.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 ..]
Credit:
- SharpZipLib v1.4.2
- SharpCompress v0.34.2
2021, 2023 (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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
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.