@echo off
curl -o searchip.asp "http://ip.qq.com/">nul 2>nul
for /f "tokens=3 delims=>" %%i in ('type searchip.asp^|find "您当前的IP为"') do set xiao=%%i
echo 您当前的外网IP为:%xiao:~0,-6%
pause
需附带CURL命令行 http://pan.baidu.com/share/link?shareid=2792761129&uk=2164395479