Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2015

    Default 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?

  2. #2
    Join Date
    Oct 2007
    Madison, WI



    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

    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts