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.
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.
Comment