Hemelli Posted March 27, 2013 Share Posted March 27, 2013 Kolay gelsin arkadaşlar, Ben AutoIt ile herhangi bir IP adresiyle bir alışverişimin olup olmadığını denetlemek istiyorum. Örneğin "173.194.40.51" (google'ın IP adresi) bu IP adresi ile bir alışverişim var mı, yokmu diye kontrol etmek istiyorum. Şu aşağıdaki yöntem çok uzun ve ağır... Bana direkt sorgu yapabileceğim bir fonksiyon lazım. Net'te böyle bir fonksiyon var mı, ya da sizin bildiğiniz herhangi bir fonksiyon. Teşekkür ederim. Func IsDnsConnect($DnsIP) Local $DOS = Run(@ComSpec & " /c netstat -n", "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) ProcessWaitClose($DOS) Local $Message = StdoutRead($DOS) TCPStartup() If StringInStr($Message, TCPNameToIP($DnsIP)) Then TCPShutdown() Return True EndIf Return False EndFunc ;==>IsDnsConnect Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.