Windows batch script: Perform a command if two files are the same!
Without the goto:
fc /b file1 file2 > nulif errorlevel 1 ( echo different) else ( echo same)
This script should work:
fc /b file1 file2 > nulif errorlevel 1 goto files_differ[files are the same, do something here]:files_differ[files are not the same, do something here]