我的批處理當前要求輸入一行 net use 命令,然后它暫停并要求輸入另一行。
我的目標是,如果我復制 粘貼 10 或 20 行用 Enter 分隔的目錄名稱,那么它會執行每一行,然后我將有 10 或 20 個連接的網路驅動器。
我找不到任何可以幫助我的東西,或者我不確定要尋找什么。
甚至有可能嗎?
@echo off
cls
:start
set /p Input=Enter shared directory name:
net use * \\%Input%\directory /USER:someuser Somepassword
pause
goto start
uj5u.com熱心網友回復:
嘗試取消暫停:
@echo off
cls
:start
set /p Input=Enter shared directory name:
net use * \\%Input%\directory /USER:someuser Somepassword
goto start
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/378970.html
上一篇:無法創建查詢findByUserId(LonguserId)
下一篇:井字游戲
