diff --git a/osc/themerec/themerec.bat b/osc/themerec/themerec.bat index 568d835..41f1ecd 100644 --- a/osc/themerec/themerec.bat +++ b/osc/themerec/themerec.bat @@ -27,12 +27,11 @@ if exist "%SystemDrive%\Windows\Setup\zjsoftwenxiang.txt" ( call :touch ) -if %osver% GEQ 3 ( - for /f "tokens=3" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\Tablet PC" /v "Devic -eKind"') do if /i not "%%a"=="0x0" call :touch +if %osver% GEQ 2 ( + for /f "tokens=3" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\Tablet PC" /v Devic +eKind') do if /i not "%%a"=="0x0" call :touch ) - :main if exist "%SystemDrive%\Windows\Setup\xrsysdark.txt" ( if exist "%SystemDrive%\Windows\Resources\Themes\dark.theme" (