mlc8686 当前离线
列兵
@echo off&setlocal enabledelayedexpansion set m=0 for /f "skip=3 tokens=3 delims=用" %%a in ('netsh interface show interface') do ( set /a m+=1 set name!m!=%%a ) echo "!name2!" "!name3!" pause复制代码
评分人数
terse 当前离线
中将
for /f "skip=3tokens=3 delims=用" %%a in ('netsh interface show interface') do ( for /f "tokens=*" %%b in ("%%a") do ( set /a m+=1 set name!m!=%%~nxb ) )复制代码
TOP
pcl_test 当前离线
荣誉版主
@echo off&setlocal enabledelayedexpansion for /f "skip=3 tokens=3*" %%a in ('netsh interface show interface') do ( set /a m+=1 for /f "tokens=*" %%c in ("%%b") do set name!m!=%%c ) echo %name1% %name2% %name3% pause复制代码