shornw Posted November 18, 2009 Share Posted November 18, 2009 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] Link to comment Share on other sites More sharing options...
Mat Posted November 18, 2009 Share Posted November 18, 2009 The @Error flag is reset after the MsgBox function! $p1 = Ping("10.179.172.175",6000) MsgBox(0, "Result", $p1 & @CRLF & "@Error: " & @Error) Mat AutoIt Project Listing Link to comment Share on other sites More sharing options...
shornw Posted November 18, 2009 Author Share Posted November 18, 2009 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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now