Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Can I use Beyond Compare on Windows 7 command line (cmd or Cygwin) to compare 2 images' content (their file format could vary, so I can't use a byte comparison) in a batch file?

If so, how do I interpret the Errorlevel codes returned? These are what I found so far:

1:   Files are byte-identical.
2:   Files are look identical but one is an indexed PNG and the other a Truecolor one.
13:  Files are different.
100: File doesn't exist.

I can't find any reference on Scooter Software's website or on Help.

Is it possible to set a tolerance (as in the interactive tool) e.g. to ignore minor differences?

share|improve this question
echo %errorlevel% might help! and a line like this if %errorlevel%==0 echo 0 or like this if %errorlevel%==1 echo 1 As for tolerance, that's very specialist photo/image software like photoshop. try graphicdesign.stackexchange.com or making use of this command perhaps imagemagick.org/script/compare.php –  barlop Mar 7 '14 at 16:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.