看了关于变量延迟的帖子,明白了其原理,但是自己试了下始终不能成功,请高手指点下
echo off & setlocal enabledelayedexpansion
set a=1
for /l %%i in (1,1,10) do set /a a+=1 & echo %a%
pause
