Fix Windows Vista's Folder Templates
By: Arie SlobWindows Vista finds itself making assumptions about your folders' content - we all know how we were told in school to remember the spelling right? Assume? Don't assume; you'll make an ass out of u and me. Something the Microsoft engineers forgot to take into account.
I can't count the times I open a folder and find that Vista thinks it should contain pictures, so it shows the columns Name, Date taken, Tags, Size and Rating. The example below shows a partition (in this case not a folder) containing Microsoft Virtual Machines and Virtual Hard Drives (part of Microsoft Virtual PC) that Windows Vista assumes to be pictures.
You should know that the way Vista determines the view of a folder also depends on the view of its parent folder(s). If no view for a folder is specified, Vista will work its way back up the folder path to see if any of the parents' views have an 'Inherit' set (this is how 'Also apply this template to all subfolders works). If there are none, then Vista will check for an AllFolders setting which we will set below. If the AllFolders key exists in the registry and specifies a template, that template is assigned. If no template is specified and no 'AllFolders' setting exist, then Vista's so called 'content sniffing' kicks in. This is where Vista will look at the content of the folder and decides to use a template that would fit the content.
The quick way to get the view I personally prefer is to get to the Properties of the folder (or partition in this case), and from the Customize tab change the folder template to All Items. If you have sub-folders you wish to apply the same customization to, check the Also apply this template to all subfolders.
You can also give Vista a default template to use for new folders (which is the template Vista will use if no current template has been saved for the folder):
- Start the Registry Editor
- Go to HKEY_CURRENT_USER \ Software \ Classes \ Local Settings \ Software \ Microsoft \ Windows \ Shell \ Bags
- From the menu, click Edit > New > Key
- Name the new key AllFolders (and keep this key selected)
- From the menu, click Edit > New > Key
- Name the new key Shell (and keep this key selected)
- From the menu, click Edit > New > String Value
- Name the new value FolderType, right-click it and choose Modify. Enter NotSpecified as the Value data
- Close the registry editor
This will make all folders for which you have not set a template (via right-click > Properties > Customize) to be displayed without a template applied.
Now, if you want to reset ALL folders that you have customized in the past, follow the instructions below:
- Start the Registry Editor
- Go to HKEY_CURRENT_USER \ Software \ Classes \ Local Settings \ Software \ Microsoft \ Windows \ Shell
- Expand the Shell key and delete the Bags key
- Close the registry editor (for good measure, close all open Windows Explorer windows, or log off and back on to Windows)
Note: You'll have to re-apply the above AllFolders modification after you delete the Bags key.
By default, Vista will remember 10000 folder settings, 5000 local folders and 5000 network folders. If you think you'll need to have Vista remember more folder's settings, change either one or both of these registry settings:
- Start the Registry Editor
- Go to HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ Shell \
- Double-click the BagMRU Size value, and set the Base to Decimal
- Now in the Value data field enter the number of folders for which Windows should remember the settings
- Go to HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ ShellNoRoam \
- Repeat steps 3-6
- Close the registry editor
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ Shell \ is the key for local files, while HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ ShellNoRoam \ applies to network folders.
Give your comments on this article.