Could anybody explain me why this batch script for DoS under WinXP is not working and variable n dosn't get correct values.
Could you just save it as some.bat on your system and test it?
Code:
set y= set n= set m= for /L %%y in (2007,1,2008) do ( echo year %%y for /L %%m in (1,1,2) do ( set /A "n = %%m + 1" echo thismonth %%m nextmonth %%n ) )
Comment