Comparing two folders of zip files:

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sprankle
    New User
    • Nov 2008
    • 1

    Comparing two folders of zip files:

    Hi Guys,
    I’m new to Beyond Compare and could use some help with scripting. I need to compare two folders with identically named “.gz” files and display their mismatches. Have had success with comparing folders of the unzipped files and single zipped vs. single zipped. Just can’t get a script to do folders of zipped.

    Here’s an example of my script.

    log verbose c:\temp\TestCompare\Bc.log
    load C:\Temp\TestCompare\Dir1 C:\Temp\TestCompare\Dir2
    expand all
    select all
    file-report layout:side-by-side &
    options:display-mismatches &
    output-to:C:\Temp\TestCompare\report.txt

    Appreciate any help,

    JS
    Last edited by sprankle; 10-Nov-2008, 04:52 PM.
  • Chris
    Team Scooter
    • Oct 2007
    • 5538

    #2
    Hello Sprankle,

    If you just have .tar.gz file on each side, load them as your base folders.

    Example:
    load c:\temp\dir1\file.tar.gz c:\temp\dir2\file.tar.gz

    When you do an "expand all", by default it will expand all folders, but it won't expand archive files. It isn't possible to change this behavior from a script, so you'll need to load a saved session with the setting turned on.

    Load the folders in BC interactively, then select Session > Session Settings. Go to the Handling tab. Set Archive Handling to "As folders always". Then save your session. In your script, load the saved session with "load savedsessionname" instead of loading the named folders. This will make the expand all command expand archive files.
    Chris K Scooter Software

    Comment

    • sprankle
      New User
      • Nov 2008
      • 1

      #3
      Thanks Chris, the "load session" worked out fine.

      Comment

      Working...