Here you go: name it COUNT.BAT and put it in the dir where you want to create the subdirs.
Usage: count lastnumber
------------------
@echo off
:: by Marcs41
if not [%1]==[] goto Okay
echo Syntax: %0 LastNumber (0 -9999)
goto End
:Okay
if [%2]==[::] goto 2nd time around
if [%3]==[::] goto 3rd time around
if [%4]==[::] goto 4th time around
if [%5]==[::] goto 5th time around
if [%6]==[::] goto 6th time around
%comspec% /e:2048 /c %0 %1 ::
goto End
:2nd time around
for %%v in (0 1 2 3 4 5 6 7 8 9) do call %0 %1 %%v ::
goto End
:3rd time around
for %%v in (0 1 2 3 4 5 6 7 8 9) do call %0 %1 %2 %%v ::
goto End
:4th time around
for %%v in (0 1 2 3 4 5 6 7 8 9) do call %0 %1 %2 %3 %%v ::
goto End
:5th time around
for %%v in (0 1 2 3 4 5 6 7 8 9) do call %0 %1 %2 %3 %4 %%v ::
goto End
:6th time around
echo %2%3%4%5
md %2%3%4%5
if [%1]==[%5] exit
if [%1]==[%4%5] exit
if [%1]==[%3%4%5] exit
if [%1]==[%2%3%4%5] exit
:End
--------------
Enjoy The solution is out there.
![[morning] [morning] [morning]](/data/assets/smilies/morning.gif)