Testovací I/O skript: testFD.bat

Dávkový skript pre testovanie stability diskových a optických I/O prenosov v slučke pomocou kopírovania (copy) a binárneho porovnávania súborov (fc /b).

rem testFD
del a:\test.dat
del f:\test\fd\test.log
:1
copy f:\test\fd\test.dat a:\test.dat
if errorlevel 1 goto error
fc /b f:\test\fd\test.dat a:\test.dat
if errorlevel 1 goto error
del a:\test.dat
if errorlevel 1 goto  error
goto 1

:error
echo Chyba FD >>f:\test\fd\test.log
goto 1