【本机公网ip地址查看工具】本地IP查看下载 批处理版
1、本机公网ip地址获取查看,很简单的代码:
@echo off
echo On Error Resume next >checkip.vbs
echo Set oDOM=WScript.GetObject("http://www.ip138.com/ip2city.asp") >>checkip.vbs
echo WScript.sleep 2000 >>checkip.vbs
echo ip = Split(oDOM.documentElement.outerText) >>checkip.vbs
echo Set FSO = CreateObject("Scripting.FileSystemObject") >>checkip.vbs
echo Set SCF = FSO.OpenTextFile(FSO.BuildPath(FSO.GetSpecialFolder(0),"ip.txt"),2,True) >>checkip.vbs
echo SCF.Write(ip(0)) >>checkip.vbs
echo SCF.Write(ip(1)) >>checkip.vbs
echo SCF.Close >>checkip.vbs
checkip.vbs
type %windir%\ip.txt
del checkip.vbs; %windir%\ip.txt
pause>nul
2、获取你本机的ip地址:具体操作方法:
点击开始――运行――输入cmd,然后在提示符下输入:ipconfig/all,输入后