Address = "smtp.qq.com"
;~ Address = "10.12.34.6"
wmi := ComObjGet("winmgmts:")
queryEnum := wmi.ExecQuery(""
. "Select * from Win32_PingStatus where Address=" . Address)
._NewEnum()
if queryEnum[process] && process.ResponseTime
MsgBox connection success
else
MsgBox connection fail
wmi := queryEnum := process := ""
return
[FUNC]测试是否联网
最新推荐文章于 2022-07-25 14:51:44 发布