Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compare two folders without opening beyond compare window from CLI?

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 ?

like image 469
BIndu_Madhav Avatar asked Oct 23 '25 20:10

BIndu_Madhav


1 Answers

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.

like image 119
Chris Kennedy Avatar answered Oct 27 '25 00:10

Chris Kennedy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!