Win XP SP.3
Why does the For loop in the following script not loop please?
@echo off
setlocal enabledelayedexpansion
cls
set year=9
set month=8
set day=25
set cnt=1
for /f "tokens=%cnt%" %%1 in ("year month day") do (
if !%%1! lss 10 set %%1=0!%%1!
set /a cnt+=1
)
echo !year!:!month!:!day!
exit /b