I would like to check diffs and when files are not same,stop compare files.
Compare any files C:/UML/reports/* and C:/UML/Test/*.
In this two directory has same file names and also aim is to want to compare same file by name.
I try to that by below code in .bat file.
diff.bat
@echo off
for %%i in (C:\UML\reports\*) do comp %%i C:\UML\Test\%%~nx%i
if %errorlevel% == 0 (echo OK) else (echo NG & PAUSE)
I know that if~ section place was not collect.
But I do not have any solution now for that.
Thanks in advance.