@echo off
set "v_reg=HKLM\SOFTWARE_X\Microsoft\Windows NT\CurrentVersion"
for %%a in (c d e f g h i j k l m n o p q r s t u v w) do (
if exist %%a:\WINDOWS\SYSTEM32\CONFIG\SOFTWARE (
REG LOAD HKLM\SOFTWARE_X %%a:\WINDOWS\SYSTEM32\CONFIG\SOFTWARE
REG QUERY "%v_reg%" /v ProductName|find /i "Microsoft Windows XP" && (set /a n+=1 & set "Drv=%%a:")
REG UNLOAD HKLM\SOFTWARE_X
)
)
if "%n%" equ "1" echo XP所在盘为 %Drv% 盘
pause
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) | Powered by Discuz! X3.3 |