cmd /v
for /f "skip=9" %I in ('REG QUERY HKLM\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}') do (
for /f "tokens=3* skip=4" %k in ('REG QUERY %I\Connection /v PnpInstanceID') do (
set m=%k
set id=!m:~13,8!
)
echo !id!
pause
)
setlocal ENABLEDELAYEDEXPANSION
for /f "skip=9" %%I in ('REG QUERY HKLM\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}') do (
for /f "tokens=3* skip=4" %%k in ('REG QUERY %%I\Connection /v PnpInstanceID') do (
set m=%%k
set id=!m:~13,8!
)
echo !id!
pause
)
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) | Powered by Discuz! X3.3 |