noxidsoft / zipdiff

Utility for comparing the contents of 2 zip files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZipDiff

NuGet release

Use the ZipDiff tool when you need to compare the contents of two zip files.

Run it as a standalone executable. The tool supports four output formats: plain text, HTML, JSON, XML and ZIP (containing differences).

This version of ZipDiff has been ported from Java to C# (.NET)

Download

To get a copy of ZipDiff you have the following options:

  • Download the source and run the build.cmd (which runs an MSBuild against build.proj)
  • Install using NuGet. Your options are:
    • ZipDiff - the command-line utility
    • ZipDiff.Core - the class-library (to use in your own applications)

Prerequisites

To use ZipDiff you will need to have the .NET Framework 4.0 installed.

Command line arguments

zipdiff.exe --file1 foo.zip --file2 bar.zip [--options]

Valid options are:

--comparecrcvalues            Compares the CRC values instead of the file content
--comparetimestamps           Compares timestamps instead of file content
--ignorecase                  Performs case-insensitive string comparison on the file name
--outputfile                  Name of the output file
--exitwitherrorondifference   Use an error code other than 0, if differences have been detected
--regex                       Regular expression to match files to exclude
--verbose                     Print detail messages

Output formats

When using the --outputfile option, the following formats are available:

  • Plain-Text
  • HTML
  • JSON
  • XML
  • Zip (containing the differences between --file1 and --file2)

For example, to output a zip file:

zipdiff.exe --file1 foo.zip --file2 bar.zip --outputfile diff.zip

If the output file extension can not be determined, then the format will default to a plain-text file.

References

This version can be found at https://github.com/dotnet-zipdiff-utils/zipdiff

The original zipdiff project was developed by Sean C. Sullivan and James Stewart.

A fork (with enhancements) was recently made by Hendrik Brummermann. This can also be found on GitHub: https://github.com/nhnb/zipdiff

License

Copyright © 2004 Sean C. Sullivan and James Stewart
Copyright © 2009 Hendrik Brummermann
Copyright © 2013 Lee Kelleher

This project is licensed under Apache License, Version 2.0.

Please see LICENSE for further details.

About

Utility for comparing the contents of 2 zip files

License:Other


Languages

Language:C# 99.3%Language:Batchfile 0.7%