Maintel Posted January 17, 2014 Share Posted January 17, 2014 Hello when I turn on VPN, the Ping command is returning error #2, but of course from command prompt it is working. This is problem with Ping command? Maybe he need to always recheck routing table what network adapter it should use? thx Link to comment Share on other sites More sharing options...
Bert Posted January 17, 2014 Share Posted January 17, 2014 Please post your code. Thanks. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Maintel Posted February 13, 2014 Author Share Posted February 13, 2014 (edited) Code? I simple used "ping" command... For example I tried it now with code from Help, still error 2 on VPN. #include <MsgBoxConstants.au3> $iPing = Ping("autoitscript.com", 250) If $iPing Then ; If a value greater than 0 was returned then display the following message. MsgBox($MB_SYSTEMMODAL, "", "The roundtrip-time took: " & $iPing & "ms.") Else MsgBox($MB_SYSTEMMODAL, "", "An error occurred with @error value of: " & @error) EndIf Edited February 13, 2014 by Maintel 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