windows常用命令(延迟扩展篇)
- 复合语句中:
setlocal EnableDelayedExpansion set a=1 && echo !a!
- for循环中:
setlocal EnableDelayedExpansion for /l %%i in (1,2,5) do ( set /a a=%%i echo !a! )
网站题目:windows常用命令(延迟扩展篇)
本文链接:http://pwwzsj.com/article/iegose.html
setlocal EnableDelayedExpansion
set a=1 && echo !a!
setlocal EnableDelayedExpansion
for /l %%i in (1,2,5) do (
set /a a=%%i
echo !a!
)