• windows的cmd批处理命令及powershell (二)


    1、变量设置

    for /l %%i in (1,1,100) do @echo %%i
    set /a i=500
    set /a i=%i%+200
    echo %i%
    pause

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    @echo off
    SETLOCAL ENABLEDELAYEDEXPANSION
    for /l %%i in (1 1 10) do (
    set /a var=%%i+2
    echo !var!
    echo %var%
    )

    ++++++++++++++++++++++++++++++++++++++++++++++

    @echo off

    setlocal enabledelayedexpansion

    set num=12

    for /l %%i in (1,1,5) do (

    set /a num+=10

    echo !num!

    )

    pause

    https://zhidao.baidu.com/question/363162512.html

    https://www.cnblogs.com/siwuxie095/p/6358173.html

    2、set 命令详解  https://www.jb51.net/article/18973_all.htm

    3、批处理教程大全 http://www.bathome.net/thread-75-1-1.html

    4、for循环详解 https://www.cnblogs.com/yang-hao/p/6003923.html

          https://www.cnblogs.com/DswCnblog/p/5435300.html

           https://www.cnblogs.com/adforce/p/3282591.html  已阅读

    5、cmd统计文件行数  https://blog.csdn.net/weixin_41972401/article/details/80690365

    6、批处理获取计算机信息         https://blog.csdn.net/wangxiaofei2006/article/details/40503877

    7、批处理中的变量和参数  https://www.cnblogs.com/siwuxie095/p/6351210.html

  • 相关阅读:
    20201215王馨瑶 实验一《Python程序设计》实验报告
    20201215第十六周学习总结
    python笔记
    信导笔记
    成绩调节
    2020-2021-1 20201226 《信息安全专业导论》第十三周学习总结
    链表(补交)
    2020-2021-1 20201226 《信息安全专业导论》第十二周学习总结
    Wireshark 实践
    ssh
  • 原文地址:https://www.cnblogs.com/yaok430/p/10448356.html
Copyright © 2020-2023  润新知