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)
To get a copy of ZipDiff you have the following options:
- Download the source and run the
build.cmd
(which runs an MSBuild againstbuild.proj
) - Install using NuGet. Your options are:
- ZipDiff - the command-line utility
- ZipDiff.Core - the class-library (to use in your own applications)
To use ZipDiff you will need to have the .NET Framework 4.0 installed.
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
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.
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
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.