I\'m trying to read text lines from a file, and increment a counter so I can eventually simulate an array in DOS.
I\'d like to be able to store the lines of text in
What about this simple code, works for me and on Windows 7
set cntr=1 :begin echo %cntr% set /a cntr=%cntr%+1 if %cntr% EQU 1000 goto end goto begin :end