@echo off
set LOOPSTART=1
set LOOPSTEP=1
set LOOPEND=10000
for /l %%i in (%LOOPSTART%,%LOOPSTEP%,%LOOPEND%) do echo %%i
echo.
echo Done
code snippets, served virtually
@echo off
set LOOPSTART=1
set LOOPSTEP=1
set LOOPEND=10000
for /l %%i in (%LOOPSTART%,%LOOPSTEP%,%LOOPEND%) do echo %%i
echo.
echo Done