Testovací I/O skript: testHD.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 testHD - 
echo -------- start test HD 206MB >f:\test\hd\test.log

del f:\test\cd\test2.dat
:1
echo --------------------- start copy >>f:\test\hd\test.log
time >f:\test\hd\test.log
copy  f:\test\hd\test1.dat f:\test\hd\test2.dat
if errorlevel 1 goto error
echo --------------------- start compare >>f:\test\hd\test.log
time >f:\test\hd\test.log

fc /b  f:\test\hd\test1.dat f:\test\hd\test2.dat >>f:\test\hd\test.log
if errorlevel 1 goto error
del f:\test\hd\test2.dat 

goto 1

:error
echo **** Chyba **** >> f:\test\hd\testerr.log
goto 1