本帖最后由 smss 于 2023-6-23 10:36 编辑
你这只有2种状态- @echo off
- for /f "tokens=3 delims= " %%i in ('REG QUERY "HKLM\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\HDAUDIO\FUNC_01&VEN_8086&DEV_2805&SUBSYS_80860101&REV_1000\4&3AD7007D&0&0301" /v "CSConfigFlags"')do if %%i==0x1 (echo goto :A)else echo goto :B
- pause
复制代码
- @echo off
- for /f "tokens=3 delims= " %%i in ('REG QUERY "HKLM\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\HDAUDIO\FUNC_01&VEN_8086&DEV_2805&SUBSYS_80860101&REV_1000\4&3AD7007D&0&0301" /v "CSConfigFlags"')do (
- if %%i==0x1 (echo goto :A
- )else (
- if %%i==0x0 (echo goto :C)else echo goto :D
- )
- )
- pause
复制代码
|