@echo off

set "NetID="
for /f "tokens=1* delims==" %%a in ('wmic nic where "NetEnabled=TRUE and not Name like '%%Virtual%%'" get NetConnectionID /value^|find "="') do set NetID=%%b
if defined NetID (
    echo;%NetID%
)
netsh interface ip show dns %NetID%

pause
分类: 技术维新

0 条评论

发表评论

Avatar placeholder

您的电子邮箱地址不会被公开。