Код: Выделить всё
@echo off &setlocal enableextensions
set "Folder=%%Year%%\TEST-%%N\Example_%%M"
set /a cntN=70
set /a cntM=2
call :Year
for /l %%N in (1,1,%cntN%) do (
for /l %%M in (1,1,%cntM%) do (
call 2>nul md "%Folder%"
)
)
goto :eof
:Year
:: date DD.MM.YY
for /f "tokens=3 delims=-/." %%y in ("%date%") do set /a Year=20%%y
if %Year% GTR 200000 set /a Year=Year-200000
goto :eof