I'm new to this site and apologize if I categorized this post incorrectly but I need help as soon as possible. The 'if' statement won't come out true even if I type "A" or "a" (in other words, I can't seem to get it to "echo Yes A!").
set /p I=
if /i I == A (
echo Yes A!
pause>nul
) else (
echo Invalid!
ping 1.1.1.1 -n 1 -w 20>nul
goto Start
)
set /p I=
if /i I == A (
echo Yes A!
pause>nul
) else (
echo Invalid!
ping 1.1.1.1 -n 1 -w 20>nul
goto Start
)