From 7e8de4ca3cff2f2f1e10f639d94ab5d518a8c5bd Mon Sep 17 00:00:00 2001 From: SegoCode <35817798+SegoCode@users.noreply.github.com> Date: Tue, 13 Aug 2024 11:32:31 +0200 Subject: [PATCH] Update qolconfig.bat --- code/modules/qolconfig.bat | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/code/modules/qolconfig.bat b/code/modules/qolconfig.bat index ea62bff..505a9f9 100644 --- a/code/modules/qolconfig.bat +++ b/code/modules/qolconfig.bat @@ -178,6 +178,14 @@ if not %errorlevel% == 1 ( ) +reg query "HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v FolderType > nul 2>&1 && ( + reg query "HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v FolderType | find "NotSpecified" > nul 2>&1 +) +if %errorlevel% == 0 ( + echo [19] Default FolderType set = [ Disabled ] +) else ( + echo [19] Default FolderType set = [ Enabled ] +) echo. echo [0] Return to menu @@ -434,6 +442,15 @@ if %N%==18 ( ) ) +if %N%==19 ( + reg query "HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v FolderType | find "NotSpecified" > nul 2>&1 + if !ERRORLEVEL! == 1 ( + reg add "HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v FolderType /t REG_SZ /d "NotSpecified" /f > nul 2>&1 + ) else ( + reg delete "HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v FolderType /f > nul 2>&1 + ) +) + endlocal