licunwei 当前离线
上等兵
@echo off Setlocal enabledelayedexpansion for /f "tokens=2 delims==" %%A in ('wmic nic where "NetEnabled='TRUE'" get NetConnectionID /value^|find "="') do ( set /a m+=1 set "winx!m!=%%A" ) echo %winx1% %winx2% set "m=0" :A set /a "m+=1" echo %winx!m!% pause goto A复制代码
评分人数
TOP
ShowCode 当前离线
VIP1
@echo off setlocal enabledelayedexpansion for /f "tokens=2 delims==" %%A in ('wmic nic where "NetEnabled='TRUE'" get NetConnectionID /value ^| find "="') do ( set /a m+=1 set "winx!m!=%%A" ) set "n=0" :Loop set /a "n+=1" echo,!winx%n%! pause if !n! lss !m! ( goto :Loop )复制代码
newswan 当前离线
上尉
@echo off set wm1=1 set wm2=2 set wm3=3 for /f "usebackq" %%a in (` set wm`) do ( echo %%a )复制代码
@echo off setlocal enabledelayedexpansion for /f "tokens=2 delims==" %%A in ('wmic nic where "NetEnabled='TRUE'" get NetConnectionID /value ^| find "="') do ( set /a m+=1 set "winx!m!=%%A" ) for /l %%i in (1,1,!m!) do ( echo winx%%i=!winx%%i! )复制代码