:lockdown
cls
echo Please Enter Your Username and Password to Play Game.
echo.
set /p user=Username:
set /p word=Password:
if /i %user% EQU guest goto main
if /i %user% EQU ryan (if /i %word% EQU %echo2% goto main)
if /i %user% EQU Ryan (if /i %word% EQU %echo2% goto main)
if /i %user% EQU tanner (if /i %word% EQU tanner goto main1)
if /i %user% EQU Tanner (if /i %word% EQU Tanner goto main1)
if /i %user% EQU austin (if /i %word% EQU austin goto main)
if /i %user% EQU Austin (if /i %word% EQU Austin goto main)
if /i %user% EQU duncan (if /i %word% EQU duncan goto main)
if /i %user% EQU Duncan (if /i %word% EQU Duncan goto main)
答案 0 :(得分:0)
您必须在每个if
行中设置双引号:
if /i "%user%" EQU "guest" goto main