成都创新互联网站制作重庆分公司

windows常用命令(延迟扩展篇)

  1. 复合语句中:
    setlocal EnableDelayedExpansion
    set  a=1  &&  echo  !a!
  2. for循环中:
    setlocal EnableDelayedExpansion
    for  /l  %%i  in  (1,2,5)  do  (
        set  /a  a=%%i
        echo  !a!
    )

当前文章:windows常用命令(延迟扩展篇)
转载注明:http://cxhlcq.cn/article/iegose.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部