for %%i in (1,1,9) do md C:\dog%%i
@echo off&setlocal enabledelayedexpansionset last=0for /l %%a in (1,1,10) do (set "%%a=!last!"set "last=%%a")set "cur=%last%":loopif defined cur (echo !cur!set "cur=!%cur%!"goto loop) else (pauseexit)