Go Back   Scooter Forums > Beyond Compare 2 Discussion > Script Central
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 29-Jun-2012, 12:21 PM
jjacobs jjacobs is offline
New User
 
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.
Reply With Quote
  #2  
Old 29-Jun-2012, 02:50 PM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,416
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
__________________
Aaron P Scooter Software

Last edited by Aaron; 29-Jun-2012 at 02:50 PM. Reason: Should be %, not $
Reply With Quote
  #3  
Old 09-Jul-2012, 10:10 AM
jjacobs jjacobs is offline
New User
 
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
Reply With Quote
Reply

Tags
folder compare, script

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 08:08 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.