Jump to content

Ping Checker


Recommended Posts

$ip = InputBox("Ping Check", "Enter IP.", "", "")
$Ping = Ping("$ip",250)

If $ping Then; also possible:  If @error = 0 Then ...
    Msgbox(0,"Status","Online, roundtrip was:" & $ping)
Else
    Msgbox(0,"Status","An error occured with number: " & @error)
EndIf

I got this script to check ping.

But it doesn't work.

Need help Please

Auto It Ruels

Link to comment
Share on other sites

$ip = InputBox("Ping Check", "Enter IP.", "", "")
$Ping = Ping("$ip",250)

If $ping Then; also possible:  If @error = 0 Then ...
    Msgbox(0,"Status","Online, roundtrip was:" & $ping)
Else
    Msgbox(0,"Status","An error occured with number: " & @error)
EndIf

I got this script to check ping.

But it doesn't work.

Need help Please

<{POST_SNAPBACK}>

Should not have quotes around a variable, unless you have the options set to look for variable names inside strings, but that's just wasting time anyway.

Try this:

$Ping = Ping($ip, 250)

Link to comment
Share on other sites

Should not have quotes around a variable, unless you have the options set to look for variable names inside strings, but that's just wasting time anyway.

Try this:

$Ping = Ping($ip, 250)

<{POST_SNAPBACK}>

Thanks Man

Auto It Ruels

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...