trt2008 当前离线
列兵
on error resume next set ie=CreateObject("internetexplorer.application") ie.navigate("http://www.ip138.com/ip2city.asp") ie.Visible=False While ie.busy Or ie.readystate <> 4 WEnd Set regEx = New RegExp regEx.Pattern ="\d.*\d" Set Matches = regEx.Execute(ie.document.body.innerhtml) ie.quit For Each Match in Matches RetStr=Match.Value Next Fn="ip.txt" Set FSO = CreateObject("scripting.filesystemobject") Set tfile=FSO.opentextfile(FN,8,-2) tfile.WriteLine "ip:" & RetStr tfile.Close set tfile=nothing Set FSO = Nothing复制代码
ShadowFiend 当前离线
上等兵
TOP
apang 当前离线
上将
Set xml = CreateObject("Microsoft.xmlHttp") xml.Open "get","http://iframe.ip138.com/ic.asp",false xml.Send While xml.ReadyState <> 4 : WScript.Sleep 100 : Wend Set re = New RegExp re.Pattern = "(\d+\.){3}\d+" MsgBox "ip: " & re.Execute(xml.ResponseText)(0)复制代码
Demon 当前离线
上尉
没用过360 这样它还蹦不蹦? apang 发表于 2013-7-4 16:21
回复 Demon 刚回过神来,Demon是不是说ie.Visible=False 是多余的? apang 发表于 2013-7-4 18:21
czjt1234 当前离线
少校
回复 apang open的false参数 表示客户机就要等到服务器返回消息后,才去执行其它命令 czjt1234 发表于 2013-7-7 10:53