Jump to content
Sign in to follow this  
Guest Uwe

Doesn't 'ping' work correctly?

Recommended Posts

Guest Uwe

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' in a command window

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

(Zielhost nicht erreichtbar).

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

$var = Ping("",250)

If $var Then

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


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


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

Share this post

Link to post
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


Share this post

Link to post
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.

Share this post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...