Dead Link Checker
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Or better yet a way that actually works:
Code: Select all
Dim wc As Net.WebClient = New Net.WebClient()
Try
wc.DownloadData("http://localhost/index.htm")
Catch ex As Exception
MsgBox(ex.Message)
End Try
Or better yet a way that actually works:
Code: Select all
Dim wc As Net.WebClient = New Net.WebClient()
Try
wc.DownloadData("http://localhost/index.htm")
Return true
Catch ex As Exception
MsgBox(ex.Message)
Return False
End Try
Adroxxx wrote:So thank you dudes but which solution should I choose? lmao;i personally would choose the ping way...
Adroxxx wrote:I did it still says that the link is down although it isnt -.-unleash your creativity

maybe do this
Code: Select all
Dim truex as boolean
Public Function CheckX(ByVal Adress as string)
Try
my.network.ping(adress)
return true
catch ex as exception
Msgbox(ex.message)
return false
end try
end function
Code: Select all
im doing this without vb so correct me if im wrongtruex = Checkx
if truex = true then msgbox("working")
else
("not working")
end if
Copyright Information
Copyright © Codenstuff.com 2020 - 2023