本帖最后由 mlc8686 于 2015-9-19 08:11 编辑
- setlocal enabledelayedexpansion
- set m=0
- 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
- )
- )
-
- 下面的“A”/“B” 如何分别手动选择 name1/2/3/4/5 ..
- cscript /nologo ics.vbs "A" "B" "off"
- cscript /nologo ics.vbs "A" "B" "on"
复制代码
|