Code: Select all
echo Will you [i]gnore or [e]ducate the student?
choice /C:IE
:: if the user presses i, errorlevel is set to 1
:: if the user presses e, errorlevel is set to 2
:: because checking the errorlevel returns true if the current error level is equal to or greater than the value specified, the options have to be in reverse order
if errorlevel 2 call :educate
if errorlevel 1 goto Menu