!BAT
debug normal
insmod %0 > nul
echo PRE-TEST (100 loops)
#echo Accessing %0 100 times...
echo STARTING AT %@time%
set a=0
:lp
if exist %0 echo %0 > (md)0x300+1
set /a a=%a%+1 > nul
if %a%<=99 goto :lp
echo ENDED    AT %@time%
echo
set ask=
set /p ask=Now run 1000 loops? (Y/[N]) : 
if /i not "%ask%"=="Y" delmod %~nx0 > nul
if /i not "%ask%"=="Y" goto :eof
echo
echo
echo FULL TEST (1000 loops)
#echo Accessing %0 1000 times...
echo STARTING AT %@time%
set a=0
:lpx
if exist %0 echo %0 > (md)0x300+1
set /a a=%a%+1 > nul
if %a%<=999 goto :lpx
echo ENDED    AT %@time%
echo
delmod %~nx0 > nul
pause Finished - press a key to return to Main Menu...

