Skip to content

Commit

Permalink
Update qolconfig.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
SegoCode committed Aug 13, 2024
1 parent 04cc7fa commit 7e8de4c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions code/modules/qolconfig.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 7e8de4c

Please sign in to comment.