Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2012
    Location
    Boston, MA
    Posts
    2

    Default Folder compare script shows orphans but same folders compare in GUI

    I'm trying to automate file and folder comparisons. The folder comparison works fine when I compare 2 folders using the GUI. When I tried a comparison of the same folders using a script, I get left side orphans for all the files. I only want to compare file sizes as the timestamps may be different. Here is my script:

    criteria size

    load "%1"
    load "%2"

    expand all
    select diff.files
    folder-report layout:side-by-side &
    options:display-mismatches &
    output-to:%3

    I saved the GUI session and exported it. Here it is:

    <bc_settings>
    <sessions>
    <list name="comparePatchPackages">
    <str_val name="1" value="K:\Folder1"/>
    <str_val name="2" value="K:\Folder2"/>
    <int_val name="RO" value="0"/>
    <int_val name="Expand" value="1"/>
    <int_val name="ExpandDiffs" value="1"/>
    <int_val name="Auto" value="1"/>
    <int_val name="Readonly" value="0"/>
    <int_val name="UseCutoff" value="0"/>
    <int_val name="CutoffNew" value="0"/>
    <int_val name="UseDaysAgo" value="0"/>
    <int_val name="DaysAgo" value="0"/>
    <int_val name="CutoffLo" value="0"/>
    <int_val name="CutoffHi" value="0"/>
    <int_val name="Tolerance" value="2"/>
    <int_val name="LeftAdjustLo" value="0"/>
    <int_val name="LeftAdjustHi" value="0"/>
    <int_val name="RightAdjustLo" value="0"/>
    <int_val name="RightAdjustHi" value="0"/>
    <int_val name="IncludeAttrib" value="0"/>
    <int_val name="ExcludeAttrib" value="0"/>
    <int_val name="SizeFilterMode" value="0"/>
    <int_val name="Criteria" value="10"/>
    <int_val name="Display" value="125"/>
    <int_val name="SortBy" value="1"/>
    <str_val name="Cols" value="n231s90t130"/>
    </list>
    </sessions>
    </bc_settings>

    What am I missing in my script?

    Thanks.

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,384

    Default

    Hello,

    The load command can take in a pair of folders:
    criteria size
    load "%1" "%2"
    expand all
    folder-report layout:side-by-side &
    options:display-mismatches &
    output-to:%3

    Or it can take a session name (which would load any already set Session Settings like the comparison criteria):

    load comparePatchPackages
    expand all
    folder-report layout:side-by-side &
    options:display-mismatches &
    output-to:%3
    Last edited by Aaron; 29-Jun-2012 at 03:50 PM. Reason: Should be %, not $
    Aaron P Scooter Software

  3. #3
    Join Date
    Jun 2012
    Location
    Boston, MA
    Posts
    2

    Default Load syntax correction

    Thank you for the load syntax correction. It works nicely now.

    Jean

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •