码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2018-02-19 20:00:17      阅读:231      评论:0      收藏:0      [点我收藏+]

标签:exp   复合语句   常用   for   window   echo   set   dexp   delay   

  • 复合语句中:
    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常用命令(延迟扩展篇)

    标签:exp   复合语句   常用   for   window   echo   set   dexp   delay   

    原文地址:http://blog.51cto.com/12173069/2071899

    (0)
    (0)
       
    举报
    评论 一句话评论(0
    登录后才能评论!
    © 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
    迷上了代码!