本帖最后由 buyiyang 于 2023-5-25 23:49 编辑
wmic也可以- @echo off
- for /f "tokens=2 delims==" %%i in ('wmic nic where "PNPDeviceID like 'PCI\\%%'" get MACAddress /value') do echo,%%i
- for /f "tokens=2 delims==" %%i in ('wmic nic where "PNPDeviceID like '%%DEV%%'" get MACAddress /value') do echo,%%i
- pause
复制代码
|