@echo off
set "file1=C:\Users\d.zabrodin\Documents\work3\gradi.txt"
set "file2=C:\Users\d.zabrodin\Documents\work3\gradi2.txt"
set "logfile=C:\Users\d.zabrodin\Documents\work3\compare_result.txt"
echo Comparing files %file1% and %file2% > "%logfile%"
fc "%file1%" "%file2%" >> "%logfile%"
echo Результат в: %logfile%
pause