Running BC4 from command line - run comparison silently with a return code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GrisbanTheThirsty
    New User
    • Nov 2015
    • 1

    Running BC4 from command line - run comparison silently with a return code

    Hello All,

    I'm new to BC and could use a push. I've figured out how to start up BC4 from a command line and to preload the folders I want to compare, but how do I get it to start running the compare and then get an error code on the result?

    C:\Program Files\Beyond Compare 4>BCompare.exe "C:\Folder1" "C:\Folder2"

    What do I need to add to this command?
  • Aaron
    Team Scooter
    • Oct 2007
    • 15941

    #2
    Hello,

    The quick compare (/qc) command line argument can take in two files and return a code, but not a pair of folders. To get this code, you would want to use bcomp.com

    If you would like to generate an automated folder compare, I would recommend using scripting to generate a text report which can be parsed. One of the report types is XML.

    An example of scripting would be:
    bcompare.exe "@c:\bcscript.txt" "c:\folder1" "c:\folder2" "c:\bcreport.xml"

    and bcscript.txt could be:
    load "%1" "%2"
    expand all
    folder-report layout:xml output-to:"%3"
    Aaron P Scooter Software

    Comment

    Working...