- @echo off & setlocal enabledelayedexpansion
- :ch
- for /f "skip=3 tokens=3 delims=用" %%a in ('netsh interface show interface') do (
- for /f "tokens=*" %%b in ("%%a") do (
- set /a m+=1
- set name!m!=%%~nxb
- )
- cscript /nologo ics.vbs A "!name1!" "off"
- cscript /nologo ics.vbs A "!name2!" "off"
- cscript /nologo ics.vbs A "!name3!" "off"
- cscript /nologo ics.vbs A .......
- )
复制代码
|