diff 2 zip files

  • Anonymous - 2010-12-20

    From what I read, i thought that I could diff 2 zip files. However when I try,
    CLOC just sits there forever. It does bring up a winzip window but with
    nothing in it. If I close this window 2 or 3 times, the command prompt finally
    returns and lists no files found. If I don't touch the WinZip window nothing
    ever happens.

    Can I diff 2 zip files? Do the contents have to be in a specific order or
    format in order for CLOC to parse the zip contents? Is this a bug? Is there
    another way to diff 2 directory structures so that I can work around this


  • Al Danial

    Al Danial - 2010-12-20

    Support for zip files on Windows is not a sure-thing. To isolate the problem
    try manually expanding the two zip files into separate directories then
    running cloc diff against the two directories. If it still reports no files
    found, try a straight count on one of the directories. If that too fails,
    rerun with --ignored=ig.txt and study the contents of ig.txt, there should be
    a reason explaining why each file was ignored.

    Once you figure out what's going on, try rerunning with the zip files, this
    time supplying the --extract-with= option, for example,
    --extract-with="\"c:\Program Files\WinZip\WinZip32.exe\" -e -o >FILE< ."
    depending on where your winzip exe is installed. Additional winzip options may
    be required on newer versions than I have.

  • Anonymous - 2010-12-21

    Thanks a lot. All I needed to do was add the extract with with the correct
    command. I always thought winzip32 worked from the command line, but
    apparently it doesn't. There is an add-on that you need to install in order to
    get it to do so. You can find this add-on at


    Once you install that add-on the extract-with becomes this

    --extract-with="\"c:\Program Files\WinZip\wzunzip\" -e -o >FILE< ."

    Feel free to add this to your help guide! Thanks for nice product.

  • Al Danial

    Al Danial - 2011-01-06

    Good tip, thanks. I've updated the web site to include this information.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks