【发布时间】:2020-05-28 15:58:02
【问题描述】:
我们如何使用循环命令,如下例:
runas /user:nsrv\john "a.bat"
如果我们输入了错误的密码,它会一遍又一遍地要求输入,直到我们输入正确的密码。
【问题讨论】:
标签: loops input passwords command runas
我们如何使用循环命令,如下例:
runas /user:nsrv\john "a.bat"
如果我们输入了错误的密码,它会一遍又一遍地要求输入,直到我们输入正确的密码。
【问题讨论】:
标签: loops input passwords command runas
哦,我找到了哈哈哈
:Loop
@echo Type password:
runas /user:john "a.bat"
if errorlevel equ 1 goto :Loop
【讨论】: