批处理获取IP同时生成TXT文本.bat
以下代码是批处理获取IP同时生成TXT文本:
- @echo off
- <"%~f0" more +5 >tmp.vbs
- cscript //NoLogo /e:vbscript tmp.vbs %1>ip.txt
- echo >nul && del tmp.vbs
- goto:eof
- set oDOM = WScript.GetObject("http://www.duosc.com/ip.aspx")
- do until oDOM.readyState = "complete"
- WScript.sleep 200
- Loop
- s=oDOM.documentElement.innerText
- set re = New RegExp
- re.Pattern="(\d+)\.(\d+)\.(\d+)\.(\d+)"
- For Each m in re.Execute(s)
- WScript.Echo m
- Next
家装活动
- 家装攻略 | 装饰你美丽的卫生间05-26
- 家装攻略 | 高层住宅几层最好 <四>05-27
- 家装攻略 | 你家的庭院也可以这样設計噢07-08