stampy Posted November 14, 2007 Share Posted November 14, 2007 So I'm sure this has come up, however my searches are coming up empty (probably too little coffee this morning). I need to test if there is a connection to the internet. I can't seem to figure out what would be the best way to do that. To make things more difficult I'd like to know which network adapter the connection is on If anybody had input or links to previous posts I'd appreciate it. Thanks Link to comment Share on other sites More sharing options...
weaponx Posted November 14, 2007 Share Posted November 14, 2007 (edited) One way... MsgBox(0,"",IsInternetAvailable()) Func IsInternetAvailable() If Ping("www.google.com") = 0 Then Return False Else Return True EndIf EndFunc Edited November 14, 2007 by weaponx Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now