Fixing Folder Type Problems in Windows Vista

Vista iconOccasionally Windows Vista may assign incorrect template for folders if the content sniffing goes wrong or the folder view settings in the registry are messed up. For example, when you open a folder containing text files, Windows may incorrectly assign it the Music template, and thereby showing all the irrelevant columns such as Artist Name, Album Title, Track Number, Genre etc. Note that the folder type problem was seen in Windows XP as well, and this continues on to Windows Vista.

Fig 1: Folder contains text files, but the task pane shows the Play all button.

FIXING THE FOLDER TYPE TEMPLATE

You can fix this problem on a per-folder basis using these steps:

1. Open the folder which has incorrect template assigned

2. Right-click on a empty area on the folder and choose Properties

3. Click the Customize tab

4. Under Use this folder type as a template, select the appropriate item from the list box.

Fig 2: Available folder type templates.

5. Click OK.

RESETTING THE FOLDER VIEWS en masse

If there are large number of folders experiencing this problem, you can reset the entire saved folder views in the registry. The values are stored under the following key:

HKEY_CURRENT_USER \ Software \ Classes \ Local Settings \ Software \ Microsoft \ Windows \ Shell \ Bags

To reset the saved folder views, download resetfolderviews_vista.reg and save to Desktop. Close all Explorer windows. Right-click on the REG file and choose Merge. Click Yes when prompted for confirmation.

Alternately, you can also open the Registry Editor (regedit.exe) directly and delete the Bags value manually.

Note: This not only resets the Folder Type template (FolderType & SniffedFolderType vales), but also clears the individual folder views, window size and other related settings. You can always customize them again!

DISABLE FOLDER CONTENTS SNIFFING

You can prevent Windows from sniffing folder contents and automatically assigning the folder type template. This is done by creating the following registry key using Registry Editor (alternately you can use the Registry fix below).

HKEY_CURRENT_USER \ Software \ Classes \ Local Settings \ Software \ Microsoft \ Windows \ Shell \ Bags \ AllFolders \ shell

After creating the above key, create a new String (REG_SZ) value named FolderType and set its Value data to NotSpecified.

NotSpecified value data corresponds to All Items folder type template (See Fig 2 above).

REGISTRY FIX

You can use the nofoldersniff.reg to automate the above registry setting.

WHAT HAPPENS NOW?

After applying the above registry setting, when you open a folder for the first time, Windows looks for the AllFolders registry key and if it’s present, it reads the folder type template from there. So every new folder will have the All Items folder type template assigned irrespective of what content the folder has. Again, you can can customize the folder type template if you need to, on a per-folder basis, using the Customize tab as explained previously in this article.

Note: Existing folders whose FolderType setting was already assigned prior to applying the above registry setting, are not affected and continue to have the existing folder type template.

This registry setting does not prevent you from customizing the individual folder views and other settings.

This method works in Windows XP as well. Note that the Bags location differs in Windows XP. It’s stored in this location:

HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ ShellNoRoam \ Bags

SEE ALSO

Common Tasks does not match folder type in Windows XP – by Keith Miller

Bookmark this Page!

BlinkList | del.icio.us | Digg it | Furl | reddit | Spurl | StumbleUpon |

Related Posts


Email SubscriptionPrefer an E-mail subscription?

Enter your email address:

Delivered by FeedBurner

7 Responses to “Fixing Folder Type Problems in Windows Vista” Subscribe to comments!

  1. Simon
    said this on Friday, April 24th 2009 5:28 am

    This looks like an awesome fix, and I WISH Vista would make this an ACTUAL option. Having to fiddle in the registry is utter madness. Why they couldn’t have left it like XP is beyond me.

  2. Bobby Bushman
    said this on Saturday, March 28th 2009 8:29 pm

    Thanks alot! Really! Thank you so much! My Vista Home Premium laptop was like a real nutcase. Every time I opened a folder it showed the most weird view and folder type settings it could show (like the “Games” folder had “Photo and Video” type which is really annoying because you can’t change the folder type manually for “Games” ; or the “Music” folder had “Contacts” type.) And it changed all by itself. Almost every time I opened the same folder it had changed to a different type.

    A function that basic should NOT have so irritating problems. That bug is just horrible! At least my family desktop computer with XP Home doesn’t ever forget the view and folder type settings. Even for cameras, music players and other devices. I hope they do something to get things better in Microsoft.

  3. Jeanie
    said this on Sunday, January 11th 2009 1:43 am

    Great just what I needed. Don’t need the PC thinking for me. I have enough trouble doing that myself

  4. Carabalda
    said this on Thursday, December 11th 2008 11:06 pm

    I really appreciate the reg files (especially the last one)… I hate the concept of “templates” that give folders various looks depending on their content. All I want is every folder to show me the files it contains in a Detauils view. I don;t need thumbnails, I don’t need icons… “just the facts, ma’am” – Setting all new folders to “All Items” means everything can be displayed as I want it, and new folders will follow that same, simle path.

  5. Shaun Cochran
    said this on Thursday, October 30th 2008 3:17 pm

    Wow, you saved me from going insane! It kept resetting my folders and switching the views over and over causing great agony!!! Thanks for the fix, opens folder more quickly w/o the sniff as well!

  6. Soothvir
    said this on Sunday, October 5th 2008 1:21 pm

    Perfect. Thank you for the keys!

  7. Davin Peterson
    said this on Monday, May 5th 2008 1:09 am

    Thanks for the fix. I have Vista Home Premium and when I open folders in explorer, many of them show as music type, even the Recycle Bin. I don’t know why Vista thinks every folder is the music type.

Leave a Reply