欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

VBS 獲取外網(wǎng)IP的實(shí)現(xiàn)代碼

 更新時(shí)間:2013年07月28日 20:08:31   作者:  
這篇文章主要介紹了用vbs獲取外網(wǎng)的ip地址,通過(guò)用vbs訪問(wèn)ip顯示頁(yè)面的返回值實(shí)現(xiàn),需要的朋友可以參考下
復(fù)制代碼 代碼如下:

set oDOM = WScript.GetObject("http://ipseeker.cn//")
flag=0
for i=1 to 10
   if oDOM.readyState = "complete" then
      flag=1
      exit for
   end if
   WScript.sleep 500
next
if flag=0 then
    WScript.Echo "timeout ..."
    wscript.quit
end if
s=oDOM.documentElement.innerText
Set Re = New RegExp
Re.Pattern="(\d+)\.(\d+)\.(\d+)\.(\d+)"
for each r in Re.Execute(s)
     res=r
     exit for
Next
WScript.Echo "IPAddress: " & res


原文:http://www.enun.net/?p=1188

相關(guān)文章

最新評(píng)論