Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set blanc= >>nul
- title file comparator
- :NoInput1
- cls
- echo Please insert the 1. file with drag and drop!
- echo.
- set /p File1=1-File:%blanc%
- if "%File1%"=="" goto NoInput1
- :NoInput2
- cls
- echo Please insert the 2. file with drag and drop!
- echo.
- set /p File2=2-File:%blanc%
- if "%File2%"=="" goto NoInput2
- SET /p BinaryFile1=<%File1%
- SET /p BinaryFile2=<%File2%
- if "%BinaryFile1%"=="%BinaryFile2%" goto Equal
- cls
- echo The files are not equal!
- echo.
- pause>>nul
- exit
- :Equal
- cls
- echo The files are equal!
- echo.
- pause>>nul
- exit
Advertisement
Add Comment
Please, Sign In to add comment