二、
@echo off & setlocal enabledelayedexpansion
for /f "delims=" %%a in ('netsh interface show interface^|find "连接"') do (
set "str=%%a"
for /f "tokens=*" %%b in ("!str:~46!") do echo,%%b
)
pause
三、
@echo off & setlocal enabledelayedexpansion
for /f "delims=" %%a in ('netsh interface show interface^|more +3') do (
set "str=%%a"
for /f "tokens=*" %%b in ("!str:~46!") do echo,%%b
)
pause