tk1 Posted March 11, 2017 Posted March 11, 2017 Hello, Is there a way, preferably natively within AutoIt, to replicate: ping -i 2 <nearby_IP> The ping() function only has an option to set the timeout, but I want to set the TTL to 2 instead. Thanks, tk1
jguinch Posted March 11, 2017 Posted March 11, 2017 I think you can do that using WMI with Win32_PingStatus. From this function, you will have to add an option for TTL : Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
ur Posted March 15, 2017 Posted March 15, 2017 Why not use the Ping function in AutoIT. if Ping($systemname)>0 Then ;Logging($iCount & $systemname) return True Else $iCount = $iCount + 1 Sleep(20000) EndIf
tk1 Posted March 15, 2017 Author Posted March 15, 2017 10 hours ago, ur said: Why not use the Ping function in AutoIT. Because as I mentioned, it only has a timeout, which is not the same thing as TTL. Normally, I do use AutoIt's ping function, but in this case it's lacking functionality I need. Thanks, tk1
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