如何让它工作,以便当我有多个单词作为用户输入时?百分比?
@echo off
Title programming test
set /p Heyyya= Type a command:
if %Heyyya% == "stop now" echo Correct
if not %Heyyya% == "stop error" echo sorry
pause >nul
答案 0 :(得分:0)
@echo off
echo Title programming test
set /p Heyyya=Type a command:
if "%Heyyya%"=="stop now" (echo Correct & goto:correct )
if not "%Heyyya%"=="stop error" echo Sorry
:correct
pause >nul