What is the Windows equivalent of the diff command? September 26, 2022 by Tarik Run this in the CMD shell or batch file: FC file1 file2 FC can also be used to compare binary files: FC /B file1 file2