PDA

View Full Version : Scripting Question


AGehman
27-Aug-2010, 03:07 PM
Hello,

I was wondering if their is anyway to just print to a text file the full directory path and name of the orphans on one of the sides. If so if their is anyway i can script to take those orphans and delete them.

Chris
27-Aug-2010, 03:26 PM
It isn't possible to list only orphans

criteria
load c:\left c:\right
expand all
folder-report layout:side-by-side options:display-right-newer-orphans output-to:c:\report.txt

To delete right side orphans, use the following script:

load c:\left c:\right
expand all
select right.orphan.files
delete right

To run a script, use the command line:
bcompare.exe @c:\script.txt

For more information on scripting, see the "Using Beyond Compare > Automating With Scripts" and the "Scripting Reference" topics in the help file.