zack0621 当前离线
列兵
@echo off for /f "tokens=3*" %%t in ('ipconfig ^/all ^| find "以太网适配器"') do set name3=%%t if "%name3%"=="" ( for /f "tokens=4*" %%a in ('netsh interface show interface^|more') do (set name=%%a) ) else ( for /f "tokens=4*" %%a in ('netsh interface show interface^|more') do (set name=%%a %%b) ) echo %name% pause复制代码
Batcher 当前离线
管理员
TOP