|
|||||||
| Register | FAQ | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 $ |
|
#3
|
|||
|
|||
|
Thank you for the load syntax correction. It works nicely now.
Jean |
![]() |
| Tags |
| folder compare, script |
| Thread Tools | |
| Display Modes | |
|
|