0
我想運行一個批處理文件時,在命令行獲取用戶輸入的,但是當用戶進入輸入,按下回車鍵時崩潰:用戶輸入崩潰
echo Welcome to Xyplex Log On
pause
set /p whichXplex = Why Xyplex server - 1 or 2 ?
if %whichXyplex% == 1(
REM COnnecting to xyplex one IP:Socket
echo Connecting to Xpyplex %whichXyplex%...
start telnet.exe 192.120.187.35 2000
)ELSE(
echo Conencting to xyplex %whichXyplex%....
start telnet 193.120.187.245 2000
)
REM Run the script
cssript logInXyplex.vbs
我使用Windows 7
讚賞的任何輸入。