Home » Questions » Computers [ Ask a new question ]

How to make explorer in Vista remember a folder's view?

How to make explorer in Vista remember a folder's view?

For no apparent rhyme or reason Vista will decide to show a folder that was previously in details view to start showing thumbnails. I go to the folder and right-click, Customize, and set it the template to "All Items", and "Also apply this template to all sub-folders", but it some point it will again decide to display it as thumbnails. Is there a way to force this setting to stay, or is it that possibly something is changing it that I am not aware of?

Asked by: Guest | Views: 73
Total answers/comments: 2
Guest [Entry]

"There seems to be multiple things that might cause this as an issue, and multiple resolutions as well, hopefully solving or making this ""bug"" appear less frequently.

Manually resetting the folder view cache/settings

Start regedit. (Win+R, enter regedit, press Enter or click OK. )
Browse to HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell.
Delete the keys Bags and BagMRU.
Browse to HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell, repeat step 3.
Browse to HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam, repeat step 3.

Trying some of these additional tweaks might help, mix it with it and see what you get.

Disabling automatic folder type discovery

Browse to HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell in regedit.
Create a new key under Shell, called Bags.
Create a new key under Bags, called AllFolders.
Create a new key under AllFolders, called Shell.
Create a new string value under Shell, called FolderType.
Set the string value of FolderType to NotSpecified.

You can increase the size of the folder view cache as well.

Increasing the size of the folder view cache

Browse to HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell.
Set the DWORD value of BagMRU size to something higher than 5000.

Note: If it's not there, create it.

After resetting the cache/settings + apply tweaks

Log off/on or reboot.
Open a Windows Explorer window and go to the Folder Options window.

Select the View tab.
Check Remember each folder's view settings.
Uncheck Restore previous folder windows at logon.
Hit the OK!

This should do it, or rather, perhaps improve the experience. Nevertheless, using an application as CCleaner with the wrong settings can disrupt and delete your settings, so be aware and checking before you use applications focused on ""cleaning up""."
Guest [Entry]

"You can make a batch file from @Thor helpful answer:
@echo off
for %%a in (""HKCR\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell"" ""HKCR\Software\Microsoft\Windows\Shell"" ""HKCR\Software\Microsoft\Windows\ShellNoRoom"") do (
for %%b in (Bags BagMRU) do (
reg delete ""%%~a\%%~b"" /f
:: Additional tweaks
reg add ""HKCR\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell"" /v FolderType /t REG_SZ /d NotSpecified /f
reg add ""HKCR\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell"" /v ""BagMRU Size"" /t REG_DWORD /d 10000 /f
rundll32 user32.dll,UpdatePerUserSystemParameters
taskkill /f /im explorer.exe & explorer
exit /b 0"