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

M

Mark Blain

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.
 
A

Allan

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.
 
B

Bill Sharpe

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
 
J

Jim

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
 

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