好的,所以我正在做一个项目,我正在做这件事,然后我到达了 confirmOne 中的 if 语句,它给了我“(此时不是预期的。”请帮忙!
许多流浪的“你到了这里!” 消息来自我试图调试它。我真的很快就需要这个。请帮忙。我也尝试删除部分,但它似乎仍然不起作用。如果您发现任何其他错误,请告诉我,因为我需要我能得到的所有帮助。谢谢!
:grabInput
echo Please enter the username of the user you wish to access.
REM - } End Echoing Information/Main Menu | Grab Input {
set /p result=
goto correctName
REM - } End Grab Input | Process Input {
:correctName
set /p input=%result%
goto confirmOne
:confirmOne
echo Got to confirmOne
pause
if %input%==[] (
pause
cls
echo Oops! Looks like you didn't enter anything! Try Agian!
echo.
echo ................................................................................
echo.
goto grabInput
) ELSE (
goto confirmTwo
)
:confirmTwo
echo Got to ConfirmTwo
pause
if %input%==~help (
goto helpMenu
) ELSE (
goto confirmThree
)
:confirmThree
echo Got to ConfirmThree
if %input%==~info (
goto infoMenu
) ELSE (
goto swapDrive
)