【问题标题】:Loop with runas command prompt (cmd)使用 runas 命令提示符 (cmd) 循环
【发布时间】:2020-05-28 15:58:02
【问题描述】:

我们如何使用循环命令,如下例:

runas /user:nsrv\john "a.bat"

如果我们输入了错误的密码,它会一遍又一遍地要求输入,直到我们输入正确的密码。

【问题讨论】:

    标签: loops input passwords command runas


    【解决方案1】:

    哦,我找到了哈哈哈

    :Loop
    @echo Type password:
    runas /user:john "a.bat"
    if errorlevel equ 1 goto :Loop
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多