Simple Batch Counter

email me

@Echo off

set counter=1

:LOOP
Echo %counter%
Set /A counter+=1
if %counter% EQU 10 pause
goto :LOOP

Now, if you want to use the counter in a nested loop, add setlocal enabledelayedexpansion to the
top of your script, and change the % to !