Hi,
am developing a Broken link check program. Is there any way to check whether a web link is broken or not without downloading the file ?
thanks for your help
Printable View
Hi,
am developing a Broken link check program. Is there any way to check whether a web link is broken or not without downloading the file ?
thanks for your help
Can you PING it?
You can also use the Microsoft Internet Transfer Control (MsInet.ocx) to try to connect to the page.
I found this in one of the websites... see if this makes any sense to you :)
Code:Private Sub Command1_Click()
Set obj = Browser("name:=Blackboard.*").Page("title:=Blackboard.*").Frame("name:=main.*").object.All.tags("IMG")
For Each element In obj
s1 = element.nameProp
If Browser().Page().Frame().Image("filename:=" & s1, "index:=0").exist(0) Then
If Browser().Page().Frame().Image("filename:=" & s1, "index:=0").object.complete = "True" Then
MsgBox "Link is Valid"
Else
MsgBox "Link is Invalid"
End If
End If
Next
End Sub