回复 14# locoman - @echo off & setlocal enabledelayedexpansion
- echo 获取网卡连接名 >nul 2>nul
- echo win7和xp系统,双网卡环境下,都好用 >nul 2>nul
- for /f "delims=" %%a in ('netsh interface show interface^|findstr /v "环回 内部"^|more +3') do (
- set "str=%%a"
- for /f "tokens=*" %%b in ("!str:~46!") do (
- if %%b NEQ 环回 if %%b NEQ 内部 echo,%%b
- )
-
- )
-
-
- pause >nul 2>nul
复制代码
|