Jump to content

Recommended Posts

this ping retuns an error before the 4 seconds is up

but the site is there

$var = Ping("www.kfi640.com", 4000)
If $var Then
    Msgbox(0,"Status","Online, roundtrip was:" & $var)

Else
    If @error = 0 Then $problem = "Network Errors Occured " & @error
    If @error = 1 Then $problem = "Host is Off-Line " & @error
    If @error = 2 Then $problem = "Host is Unreachable " & @error
    If @error = 3 Then $problem = "Incorect Destination " & @error
    If @error = 4 Then $problem = "Network Errors Occured " & @error
    Msgbox(0,"Status",$problem )

EndIf

any ideas???

thx

8)

NEWHeader1.png

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...