How to check from command line if a certain URL exists?

  • Thread starter Thread starter Sabine Elsner
  • Start date Start date
How can I check from command line (!) if a certain URL e.g.

http://192.168.0.47:4050/aaa/bbb/m.html

exists?

Again: Typing in the URL in browser is not the way I am searching for.
It should be detected from command line

Sabine

I found a Windows Scripting Host (WSH) script that does the job here:
http://groups.google.com/group/microsoft.public.scripting.wsh/msg/70ee76f2e7044403

Save it as "test.vbs", change the URL inside it and run it by typing
"cscript test.vbs". Try the WSH group if you need more help.
 
Sabine Elsner said:
How can I check from command line (!) if a certain URL e.g.

http://192.168.0.47:4050/aaa/bbb/m.html

exists?

Again: Typing in the URL in browser is not the way I am searching for.
It should be detected from command line
Inside a command window there are no such commands. That is one reason why
internet browsers exist. You can do tracert and/or ping to an i.p. address
or to a named domain.
 
Allan said:
Inside a command window there are no such commands. That is one reason
why internet browsers exist. You can do tracert and/or ping to an i.p.
address or to a named domain.
Strictly speaking, ping won't tell you whether a URL exists or not. It
will just indicate whether you can reach the domain from your computer
at that particular time. There were a few times when microsoft.com
didn't respond to a ping, but it wasn't that it didn't exist.

Bill
 
ping 192.168.0.47 from a computer in 192.168.0.xxx
This will show whether the computer exists or not.
From that point on, you are on your own.
Jim
 
Back
Top