3

I want to compare two folders and all I have is directory path of two folders. How to use Beyond Compare 4 CLI commands to compare them without actually opening the window. I have been using the below command but it opens up the window every time.

C:\Program Files\Beyond Compare 4\BCompare.exe C:\BeyondC\Folder C:\BeyondC\NoFolder /fv=Folder Compare /silent

How to compare folders without actually opening BeyondCompare window ?

BIndu_Madhav
  • 577
  • 1
  • 8
  • 21

1 Answers1

5

You can use a Beyond Compare script to compare two folders and output comparison results to a file.

Script:

criteria timestamp size
load c:\folder1 c:\folder2
expand all
folder-report layout:side-by-side output-to:c:\report.txt

To run the script, pass it as a command line argument with @ in front of the name. The @ character makes Beyond Compare run a file as a script rather than load it for interactive comparison.

bcompare.exe /silent @c:\script.txt

See the Using Beyond Compare > Scripts and Scripting Reference topics in Beyond Compare 4's help file for more on scripting.

Chris Kennedy
  • 2,639
  • 12
  • 11