Hi folks, I would appreciate a little help -- breaking my head over this seemingly basic task.
I am looking to do a command line "sanity check" binary recursive comparison of two folders (the folders should be the same), and then examine the exit code to interpret the result. Not interested in creating or viewing difference reports, etc. just a binary recursive compare, then look at the exit code 0 if they are binarily identical, exit code 1 if the folders are binarily different.
Running command line:
The script I have:
The Beyond Compare UI running binary compare shows no differences (there are a couple of files with different time stamps, but the content of the files is identical), but the command line opens a BeyondCompare window, shows successful execution of a script, and that's it. When I close that window and read the %errorlevel% it's always 0, regardless of whether the folders compared were identical or different (I add an extra file for testing purposes).
Could you please help with the correct syntax for the script, or explain what I am doing wrong.
Many thanks.
I am looking to do a command line "sanity check" binary recursive comparison of two folders (the folders should be the same), and then examine the exit code to interpret the result. Not interested in creating or viewing difference reports, etc. just a binary recursive compare, then look at the exit code 0 if they are binarily identical, exit code 1 if the folders are binarily different.
Running command line:
Code:
bcomp.com "c:\DEV\DEPLOYMENT\DEV\script.txt" "C:\DEV\DEPLOYMENT\DEV\21.1.0.78" "C:\DEV\DEPLOYMENT\DEV\21.1.0.781"
Code:
criteria binary load %1 %2
The Beyond Compare UI running binary compare shows no differences (there are a couple of files with different time stamps, but the content of the files is identical), but the command line opens a BeyondCompare window, shows successful execution of a script, and that's it. When I close that window and read the %errorlevel% it's always 0, regardless of whether the folders compared were identical or different (I add an extra file for testing purposes).
Could you please help with the correct syntax for the script, or explain what I am doing wrong.
Many thanks.
Comment