UIP 空值 查本机- @echo off
- set/p uip=请输入要查询的IP:
- IF "%uip%" equ "" (set dip=getip&set "nip=你的外网 IP 是: ")else set "dip=queryip"
- (echo Set oDOM=WScript.GetObject("http://www.ip.cn/getip.php?action=%dip%&ip_url=%uip%"^)
- echo Do Until oDOM.readyState="complete"
- echo WScript.sleep 50
- echo Loop
- echo WScript.echo oDOM.documentElement.outerText)>Getip.vbs
- for /f "delims=" %%i in ('cscript //nologo Getip.vbs') do echo %nip%%%i&del Getip.vbs&pause&exit
复制代码
|