Jump to content

Doesn't 'ping' work correctly?


Guest Uwe
 Share

Recommended Posts

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

Link to comment
Share on other sites

Hi Uwe :)

normally there is no bug :evil:

Yeah, but I found a better possibility to check for the error.

I will test it today or tomorrow in the later evening under different OS's.

Thanks for info and regards

Holger

Link to comment
Share on other sites

No, the problem is the internal handling.

You can ping this address and the problem is when there is a network message like:

"Answer from X.X.X.X: Destation host unreachable"

So for the command there is an answer so the connection is ok but it isn't.

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