CMD Coding Help Needed

Joined
Jul 23, 2015
Messages
1
Reaction score
0
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
)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top