I am making a program that checks if a user\'s IP is a certain IP address.
Currently, I created a successful internal IP version:
@echo off
set userI
First it seems there is a .
too much after the first .com
.
Second when using your command with simply google.com
and echo %a
I get the following:
" xx.xx.xx.x"
without the quotes and with two leading spaces!
So your if will never be true!
Change it to something like this: if "%%a"==" xx.xx.xx.x" Goto:good
and you should be fine.