Friday, November 02, 2007

How to do counts on cmd scripts

@echo off

set _count=1
set _max=140

:Start
if %_count%==%_max% goto end

echo %_count%
:: increment the counter.
set /a _count=_count + 1
goto start
:end
pause
set _count=
set _max=

No comments:

Post a Comment