Address = "smtp.qq.com"
wmi := ComObjGet("winmgmts:")
queryEnum := wmi.ExecQuery(""
. "Select * from Win32_PingStatus where Address=" . Address)
._NewEnum()
if queryEnum[process] && process.ResponseTime
{
MsgBox 连上
}
else
{
MsgBox 没连上
}
wmi := queryEnum := process := ""
return
暂无讨论,说说你的看法吧