请教高手如何用批处理读取注册表值?

2024-11-15 07:43:22
推荐回答(1个)
回答1:

@echo off
setlocal enabledelayedexpansion
(for /f "tokens=8 delims=#&" %%i in ('reg query HKEY_LOCAL_MACHINE\SYSTEM\
ControlSet002\Control\DeviceClasses\{53f56307-b6bf-11d0-94f2-00a0c91efb8b}') do (
set s=%%i
if "!s:~15,!" neq "" if "!s:~16,!" equ "" echo %%i))>u.txt