本帖最后由 apang 于 2013-3-5 09:52 编辑
- @echo off
- set wmic=wmic nic where "ProductName='TAP-Win32 Adapter V9'"
- for /f "tokens=2 delims==" %%a in ('%wmic% get NetConnectionID/value^|find "="') do set Name=%%a
- netsh -c interface ip add dns name="%Name%" 10.110.4.4
- pause
复制代码
|