zip2 2.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global zip2 --version 2.0.2
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.0.2
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=zip2&version=2.0.2
nuke :add-package zip2 --version 2.0.2

zip2

v2.0.2

Example:

zip2 -xf ..\backup.zip -O restore-dir

Syntax:

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

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

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

Specified Example:

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

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

Link to Major Changes

Credit:

  • SharpZipLib v1.4.1
  • SharpCompress v0.32.2

Remark:

You can install dir2 by dotnet tool install dir2 -g

2021, 2023 (c) Yung, Chun Kau

yung.chun.kau@gmail.com

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 61 4/15/2024
2.1.0 116 11/16/2023
2.0.2.1 289 1/27/2023
2.0.2 263 1/27/2023
2.0.1 285 1/12/2023
2.0.0 271 1/11/2023
0.9.3 326 11/11/2021
0.9.2 288 11/8/2021
0.9.1 310 11/4/2021
0.9.0 363 10/31/2021

Major change
1. Support to list the content of a RAR file.
2. Support to extract content from a RAR file.
3. New options to list file:
-b           List filename only
-F DIR       List filename if it is found on DIR
-o name      Sort by filenmae
--dir-only   Show dir only
4. New option to extract file:
--no-dir     Remove the original dir