zoukankan      html  css  js  c++  java
  • bat批处理

    1. 参数赋值
    set a=bigfee
    2. 引用某变量的值
    使用 %变量名% 的形式就可以使用了,如我们要返回变量a的值只要输入echo %a%
    3. 在界面输入参数:
    set /p var=请输入用户名: //使用set进行设置变量,并使用/p参数让命令暂停运行,提供用户在cmd窗口输入变量的机会
    4. 将参数写入文件
    @echo %var%>>1.txt  追加方式写入
    @echo %var%>1.txt   覆盖方式写入
    pause
    

      

    @echo on
    :start
    set /p pass=please enter f5 password:
    powershell ./iControl.ps1 -ServerList serverlist.txt -AddressMapFile co1-mapping.xml -Action query -HostName 10.236.159.5 -UserName user -Password %pass%
    echo "press Enter key to restart"
    @pause
    goto start
    
  • 相关阅读:
    高仿中国银行ATM系统
    第二次冲刺2
    第二轮冲刺1
    本日进度7
    本日进度6
    本日进度5
    本日进度4
    本日进度3
    本日进度2
    本日进度
  • 原文地址:https://www.cnblogs.com/hualiu0/p/5110070.html
Copyright © 2011-2022 走看看