1.

Solve : DosNewbie got problem with fc command! please help....?

Answer»

set count
for /L %%i in (1,1,7) do (

   fc solutions\%%i.txt Othersolutions\%%i.txt /A >> result.txt

)

I wanna count the number of DIFFERENT files in two directory solutions and Othersolutions. But how do I KNOW that files are different? Does fc command return ANYTHING?After fc has run, the variable %errorlevel% will be ZERO if the files are the same, and nonzero if they are different.

Thanks, Dias. I can't find this INFORMATION anywhere else but here . Thanks again man.



Discussion

No Comment Found