Jump to content
Sign in to follow this  
shornw

Ping within AutoIt

Recommended Posts

shornw

Hi all,

I cant quite get my head round what's happening here.... using the following:

$p1 = Ping("10.179.172.175",6000)
MsgBox(0, "Result", $p1)
MsgBox(0, "Error", @error)

if I target an address on the same subnet, I get a roundtrip time response. If I ping www.google.co.uk, I get a roundtrip time response. The bit that's messing with my head is, if I ping any address on a different subnet (which is routed) I get a 0 roundtrip time (even with a 10000 timeout) but also a @error response of 0. I am able to ping the addresses from a command line

does anyone have any explanation for this?

Thanks for looking


[font='Comic Sans MS']Eagles may soar high but weasels dont get sucked into jet engines[/font]

Share this post


Link to post
Share on other sites
shornw

DOH!! (thanks)

I now get an 'Host is offline' error however I can still ping successfully from command line


[font='Comic Sans MS']Eagles may soar high but weasels dont get sucked into jet engines[/font]

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  

×