devcon disable 设备id
devcon enable 设备id
devcon find pci\*可以找到设备ID,或者设备管理器里看看- @echo off
- for /f "delims=^& tokens=1,2,3" %%a in ('devcon find pci\* ^| findstr /i "wireless"') do set "dev=%%a^&%%b"
- echo %dev%
- devcon disable %dev%
- devcon enable %dev%
- pause
复制代码
- @echo off
- for /f "delims=^& tokens=1,2,3" %%a in ('devcon find usb\* ^| findstr /i "wireless"') do set "dev=%%a^&%%b"
- echo %dev%
- devcon disable %dev%
- devcon enable %dev%
- pause
复制代码
|