set /P id=Enter id:
echo %id%
if %id%=='a'
(
:: DO THINGS1
EXIT
)
if %id%=='b'
(
:: DO THINGS2
EXIT
)
else (
echo Input can be either a or b
)
But everytime I am running the file it is not performing any command further even though I am giving 'a' or 'b' as input, it asks for only till user input and exiting. Would appreciate your suggestions
@Choice /C ab /M "What is your ID", 2:@If ErrorLevel 2 (Echo=Do things based upon B entry)Else Echo=Do things based upon A entry