I need to be able to find out if a specific site exists via the Windows CLI.
At first I was just using ping.
that shows me that www.google.com
exists. But if I try say:
then I get a "host not found" error even though I know that www.google.com/linux
So obviously ping will not work. In the end I am trying to write a .BAT file where I can put in a domain name and it will automatically check if certain things exist. Like I can put in www.example.com
and it will check for the existence of:
What would be the best tool or technique to do this with? It has to be from the windows command line and I have to be able to automate it. I am not averse to downloading small utilities to call from the script but they have to be free and/or open source.