联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
各设备分类标准 00 Use class information in the Interface Descriptors 01 Audio 02 Communications and CDC Control 03 HID (Human Interface Device) 05 Physical 06 Image 07 Printer 08 Mass Storage 09 Hub 0A CDC-Data 0B Smart Card 0D Content Security 0E Video 0F Personal Healthcare DC Diagnostic Device E0 Wireless Controller EF Miscellaneous FE Application Specific FF Vendor Specific
@echo off for /f "delims=*" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Enum\USB"^|find /i "Vid_"') do ( for /f "skip=4 delims=" %%b in ('reg query "%%a"') do ( for /f "skip=4 tokens=3" %%i in ('reg query "%%b" /v CompatibleIDs') do ( for /f "skip=4 tokens=1,2,*" %%a in ('reg query "%%b" /v DeviceDesc') do ( for /f "delims=&" %%j in ("%%i") do echo "%%j" 设备名称:%%c )))) echo.&echo 若要查询USB\Class_XX以下分类,请将第5个for的"delims=&"改成"delims=*" pause
devcon.exe disable USB\Class_03 禁用USB鼠标&键盘
Originally posted by vkill at 2008-1-16 11:51: 本本上把 一些设备认为是 U 盘