网上一搜就行了,原来好象写过一个用批处理打开此网址,然后到IE临时文件夹找它的,给你贴个调用vbs的- @echo off
- (echo Set wn= WScript.GetObject("http://www.ip138.com/ip2city.asp"^)
- echo do until wn.readyState = "complete"
- echo WScript.sleep 100
- echo loop
- echo WScript.echo wn.documentElement.outerHtml
- )>getip.vbs
- for /f "tokens=2 delims=[]" %%a in ('cscript /NoLogo getip.vbs') do set ip=%%a
- del getip.vbs
- echo %ip%
- pause
复制代码
|