站长资源脚本专栏

批处理显示当前ip(局域网)

整理:jimmy2025/1/6浏览2
简介复制代码 代码如下:@echo off for /f "tokens=15" %%i in ('ipconfig ^| find /i "ip address"') do set ip=%%i echo %ip% pause
复制代码 代码如下:
@echo off
for /f "tokens=15" %%i in ('ipconfig ^| find /i "ip address"') do set ip=%%i
echo %ip%
pause