BuildMaster Documentation

Generating a Diff Report with Beyond Compare

  • Last Modified: 2019-07-17


  • Beyond Compare command line utility installed

Beyond Compare is a multi-platform utility that combines directory compare and file compare functions in one package. While typically used as a GUI tool, it also ships with a command line utility that can be used to generate diff reports from an automated system like BuildMaster.

Example plan:

# Run Beyond Compare and capture output into a build report
    # set variables here for example simplicity

    set $PrevDirectory = C:\tmp\reports\prev; 
    set $CurrDirectory = C:\tmp\reports\curr;

    set $ScriptPath = $PathCombine($WorkingDirectory, script.txt);
    set $ReportPath = $PathCombine($WorkingDirectory, report.html);

    Create-File $ScriptPath
        Text: >>load "%1" "%2"
expand all
folder-report layout:side-by-side &
options:display-all &
output-to:%3 output-options:html-color>>

    Exec '"C:\Program Files (x86)\Beyond Compare 3\BCompare.exe" "`@$ScriptPath" "$PrevDirectory" "$CurrDirectory" "$ReportPath" /silent';

    Capture-FileReport $ReportPath
        Name: Beyond Compare Report

This generates the following output when viewed on the BuildMaster build overview page:

Is this documentation incorrect or incomplete? Help us by contributing!

This documentation is licensed under CC-BY-SA-4.0 and stored in GitHub.

Generated from commit ce197caa on master