sigma39 当前离线
列兵
FOR /F "tokens=2*" %%i IN ('ipconfig/all^|find /i "Ethernet adapter "') DO set name=%%j FOR /F "tokens=1* delims=:" %%i in ("%name%") do set 网卡名称=%%i复制代码
Hello123World 当前离线
荣誉版主
@echo off FOR /F "tokens=2*" %%i IN ('ipconfig/all^|find /i "描述"') DO set name=%%j FOR /F "tokens=1* delims=:" %%i in ("%name%") do set 网卡名称=%%j echo %网卡名称% pause>nul复制代码
TOP