Friday, 13 September 2013

How do I correctly use 'else' in a batch file?

How do I correctly use 'else' in a batch file?

I've been working something, and the point where I'm stuck is this:
set /p !=
if %!% == yahoo.com goto YAHOO
if %!% == facebook.com goto FACEBOOK
if %!% == mail.google.com goto GMAIL
if %!% == youtube.com goto YOUTUBE
if %!% == google.com goto GOOGLE
else goto ELSE
Btw, this is just an example. Well, the problem is, the else doesn't work
correctly... Idk how I should do it so I hope someone can help...

No comments:

Post a Comment