@echo off for /L %%n in (1,1,100) do (echo %%n) & sleep 1 & call :count :count echo we are at count %1