@echo off
set /a COUNT=1
:LOOP
echo %COUNT%
set /a COUNT+=1
if %COUNT% lss 10001 goto LOOP
echo.
echo Done
code snippets, served virtually
@echo off
set /a COUNT=1
:LOOP
echo %COUNT%
set /a COUNT+=1
if %COUNT% lss 10001 goto LOOP
echo.
echo Done