Jump to content

Recommended Posts

Posted

I just want to test if a station responds within a given time.

The following script reports a '1' as roundtrip time.

However a 'ping 123.123.123.123' in a command window

(Windows 2000 SP4) results a 'Destination host not reachable'

(Zielhost nicht erreichtbar).

How can I test if "123.123.123.123" is present or not?

$var = Ping("123.123.123.123",250)

If $var Then

Msgbox(0,"Status","Online, roundtrip was:" & $var)

Else

Msgbox(0,"Status","An error occured with number: " & @error)

EndIf

BTW: Windows without AutoIt is like a car without wheels...

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...