I loved DOS batch files!
Here is a crude way to do it (I'm sure there are better and neater batch constructs, but its too early on a Sunday morning for me...)
--------------------------------------------------
cls
@echo off
REM makedirs.bat
REM environmental variables used - intCounter
REM initialize test value to be "true"
SET intCounter=1
:while
REM test condition (set to 10 here)
IF %intCounter% GTR 10 (GOTO wend)
REM procedure where condition is "true"
md %intCounter%
REM set new test value
SET /a intCounter=intCounter+1
REM loop
GOTO while
:wend
PAUSE
-------------------------------------------------
:-)
Mac