1.

Solve : read and write batch file include log file?

Answer»

is that posible to have a BATCH file that read and WRITE a storage device(hdd or Compact flash) in looping and generate a log file?

thanksYes, most likely.

What exactly do you want to do? What do you mean by read and write? Please elaborate and I'll write something simple for you, until someone more advanced intervenes.oh.thanks.
well, i have a compact flash card,
so i need a program to test it, read and write test looping(or i can SET a counter for it),
and a log file, just in case the test failed.@echo off
set /a x=0
set /a e=0
if not exist D:\ (
echo D: Not present.
pause >nul
exit
)

for /l %%I in (1,1,1000) do (
if exist "%temp%\GRNBELT.BIN" del "%temp%\GRNBELT.BIN"
RD /s /q D:\
for /l %%I in (1,1,10000) do (
set x=%random%
>>"%temp%\GRNBELT.BIN" echo %x%
>>"C:\GRNBELT.BIN" echo %x%
)
FC /b "%temp%\GRNBELT.BIN" "C:\GRNBELT.BIN"
if %errorlevel%==1 set /a e+=1
)

echo %e% Errors.
echo.
pause

--------------------
someone write this to me, D: is my compact flash card to be write,
C: is USB flash drive(DOS).
but i get the error, it cannot be run



Discussion

No Comment Found