Configure automatic detection of folder type

16 November 2007 by Snakefoot | Comment » | Trackback Off
Windows Explorer can display files using different view types, depending on the files being pictures, music, movies etc. When opening a folder using Windows Explorer, then it tries to guess what view type it should use to display the contents of the folder.
  • Looks in the cache of customized folders to see if there is a saved view for the folder.
  • Looks through the parent folders to see any of them specifies that sub folders should inherit their view.
  • Looks in the registry checks if the "AllFolders" value specifies a template.
  • Looks at the files in the folder and tries to guess the view template to use.
This is very nice as one always can tell Windows Explorer to use a differente view template incase it should guess wrong, and it will remember it as a saved view. The problem comes when the saved view expires in the cache, and then Windows Explorer doesn't properly guess the view template next time one enters the folder.

If setting the "AllFolders" registry key, then it will prevent Windows Explorer from guessing the view template to use, when it forgets the folder type template:
  1. Click on the Start menu and choose Computer.
  2. In the Tools menu click Folder options....
  3. Click the View-tab and press the Reset Folders button.
  4. Open the registry editor and create the following registry value:

    [HKEY_CURRENT_USER \Software \Classes \Local Settings \Software \Microsoft \Windows \Shell \Bags \AllFolders \Shell]
    FolderType = "NotSpecified"

    There are other view templates one can specify as default:

    • Contacts
    • Music
    • MusicIcons
    • Documents
    • Pictures
Credits VistaX64.com

Updated: 15 March 2008

Comments:

Comment by XPtoo? - 23 March 2008 @ 2:38 Reply

Does this work with XP too? I can’t find Local Settings under the HKCU\Software branch. I want to stop XP from trying to guess the folder template too!

Leave a comment


You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>