iEntry 10th Anniversary Vista Support About Us

The Win Forums: [resolved]Remember Folder Settings (FINALLY Works!) - The Win Forums

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

[resolved]Remember Folder Settings (FINALLY Works!) Rate Topic: ***** 6 Votes

#1 User is offline   stevecn70 Icon

  • Uber 1337
  • Icon
  • Group: +Subscriber
  • Posts: 1,757
  • Joined: 09-February 07
  • Gender:Male
  • Location:PLANO, TX
  • Windows Vista

Posted 08 October 2007 - 10:54 PM

Ok, so Microsoft decided to play hopscotch on where the Folder settings are stored in the registry, After many months of wondering why when I applied settings that were given in other sites, my folders still didn't work right. My settings would still get forgotten, Vista would still try to overwrite templates I had setup (like changing a folder that is specified as documents/detail and then switching it to pictures/icons)

I did some registry Traces and found out where Explorer is actually looking for for it's values. One key thing is the BagMRU Size. The BagMRU size is the maximum number of folders that Vista will remember the view settings on. In XP it was 400, and in Vista it is 5000 but the value is stored in the wrong place in the registry. Let me give a quick history now.

Windows XP stored this information in the following locations:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\BagMRU]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\Bags]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\BagMRU]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags]


You could delete these four keys and it would remove all your folder customizations.
To increase the cache size, you would modify the BagMRU Size setting at the following locations:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam]


Now, the kicker, Vista doesn't store this information there anymore. It stores it at:

[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU]
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]


So any tweaks for XP aren't going to work for Vista because they update the wrong location.

Now, the real kicker and goof on Microsoft's part. If you do a fresh install of vista, and look at the Registry. You will find values for BagMRU Size at the following locations:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam]


So when Vista was created, Microsoft changed Explorer to look in a different spot, but they didn't move the spot in the registry. Everyone assumed that since the value was there from scratch, that that is where you updated it, especially since that is where you went in XP. The value you find there will be 5000, which really should be enough, but now you will discover why no matter what you put in there, it doesn't work. Look at the following screen shot:

Attached Image

This is a registry trace that I did on Explorer.exe when you open it. Look at the highlighted line. Take note of where Explorer.exe is looking for the BagMRU Size. ???? It is looking in [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell] which is the NEW location Explorer looks. Problem is, Microsoft never put in a value for BagMRU Size at that location. I have no idea what value it is using when it can't find this value but it isn't very high. Notice the "NAME NOT FOUND" over in the Result column for the Registry Trace.

Here is what happens when the entry exists, I have my BagMRU size set to 20,000. Notice the trace reflects this:

Attached Image

Here is the registry file that will actually fix your folders. The file also includes a line (in the correct key) that will turn off auto template discovery. This is nice because once you run the registry file and restart, every folder on your computer will be set to ALL ITEMS for the template. You can then go into whatever folder you want and set the default template to something else and apply to subfolders (Apply to subfolders didn't work EVER in XP.. Grrr Microsoft). Remove that entry in the Registry File if you want Vista to auto determine the template for folders on the computer (I don't know why anyone would want this myself). Take what I have below and put in a text file and rename extension to .REG.

Windows Registry Editor Version 5.00

; This is a Vista ONLY Folder Repair tool, This tool will force Vista to remember your folder settings by
; Modifying registry entries. Descriptions below explain what each step is doing.
; Steps:
; 1. Open up explorer and go to Tools->Folder Options->View and uncheck Remember each folder's View settings
; 2. Double Click this registry File
; 3. Restart Computer before doing anything else
; 4. Once restarted, bring up explorer again and put the Check back that was removed in step 1.
; 5. All folders on the computer should now be in the "All Items" format. Since Auto Discovery is now off
; you will need to go to your shell folders (Pictures, Videos, Contacts, Music, etc.) and set them to the
; template you want, apply to subfolders, etc.


; Clear out Folder Settings left over from XP:
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\BagMRU]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\Bags]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\BagMRU]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags]

; Clear out Folder Settings for Vista
[-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU]
[-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]


; Modify the Folder Storage space to 20000, this will allow the saving of settings for up to 20000 different folders.
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell]
"BagMRU Size"=dword:00004e20

; Turn off Vista's Auto Template Discovery. This keeps vista from deciding on it's own what type
; of Folder you have (ie, picture, videos, docs, etc) This will keep vista from changing what you
; have already set for a folder as well. Notice this value is in the Bags Key that was deleted
; in the settings above. Remember this is there, because if you decide to manually go delete
; your Bags Key, you will lose this value and auto-discovery will turn back on again.

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


Here is the Zip file containing the .REG file typed out above:

Attached File  VistaFolderSettings.zip (1.04K)
Number of downloads: 1770

This post has been edited by Mephisto: 01 October 2008 - 12:49 AM

0

#2 User is offline   Lead3 Icon

  • Computer Wise
  • Icon
  • Group: Member
  • Posts: 468
  • Joined: 16-September 06
  • Gender:Male
  • Location:Florida, USA
  • Windows 7

Posted 09 October 2007 - 02:22 AM

Excellant work. I'm going to apply this ASAP. Thanks.
Paul
0

#3 User is offline   Mamamegs Icon

  • Microsoft MVP Windows Desktop Experience
  • Icon
  • Group: Member
  • Posts: 335
  • Joined: 11-May 07
  • Gender:Female
  • Location:Holland
  • Windows Vista

Post icon  Posted 11 October 2007 - 07:32 PM

:P Had this one figured out ages ago... :P
http://www.vistabits..._remembered.htm

:shifty:
0

#4 User is offline   stevecn70 Icon

  • Uber 1337
  • Icon
  • Group: +Subscriber
  • Posts: 1,757
  • Joined: 09-February 07
  • Gender:Male
  • Location:PLANO, TX
  • Windows Vista

Posted 12 October 2007 - 01:58 AM

View PostMamamegs, on Oct 11 2007, 02:32 PM, said:

:P Had this one figured out ages ago... :P
http://www.vistabits..._remembered.htm

:shifty:


I looked at your registry file, the BagMRU Size lines are wrong. Those are the locations the setting was stored in XP. Vista doesn't look for BagMRU size in those locations (even though that is where the entries exist in the registry) This is what the problem is, everyone seems to think that this the proper place since the developers put the entries there. I know because I've used this registry tweak and still ran out of folder storage space, when I knew I was no where near the limit. Please look at my screenshots in the first post and read what I said about it. You can see by the registry trace exactly where explorer is pulling the value from.

Attached thumbnail(s)

  • Attached Image

0

#5 User is offline   Mamamegs Icon

  • Microsoft MVP Windows Desktop Experience
  • Icon
  • Group: Member
  • Posts: 335
  • Joined: 11-May 07
  • Gender:Female
  • Location:Holland
  • Windows Vista

Post icon  Posted 12 October 2007 - 07:42 AM

View Poststevecn70, on Oct 12 2007, 03:58 AM, said:

View PostMamamegs, on Oct 11 2007, 02:32 PM, said:

:P Had this one figured out ages ago... :P
http://www.vistabits..._remembered.htm

:shifty:


I looked at your registry file, the BagMRU Size lines are wrong. Those are the locations the setting was stored in XP. Vista doesn't look for BagMRU size in those locations (even though that is where the entries exist in the registry) This is what the problem is, everyone seems to think that this the proper place since the developers put the entries there. I know because I've used this registry tweak and still ran out of folder storage space, when I knew I was no where near the limit. Please look at my screenshots in the first post and read what I said about it. You can see by the registry trace exactly where explorer is pulling the value from.


Jeez, you're right Steve! I didn't realize this. :blush: Thanks for that. Funny enough though, I have a lot of emails from people who said it workes for them? Must be the 'placebo effect.' :lol: Would it be allright to use your reg file for my site? :wub:
0

#6 User is offline   stevecn70 Icon

  • Uber 1337
  • Icon
  • Group: +Subscriber
  • Posts: 1,757
  • Joined: 09-February 07
  • Gender:Male
  • Location:PLANO, TX
  • Windows Vista

Posted 12 October 2007 - 08:32 AM

View PostMamamegs, on Oct 12 2007, 02:42 AM, said:

View Poststevecn70, on Oct 12 2007, 03:58 AM, said:

View PostMamamegs, on Oct 11 2007, 02:32 PM, said:

:P Had this one figured out ages ago... :P
http://www.vistabits..._remembered.htm

:shifty:


I looked at your registry file, the BagMRU Size lines are wrong. Those are the locations the setting was stored in XP. Vista doesn't look for BagMRU size in those locations (even though that is where the entries exist in the registry) This is what the problem is, everyone seems to think that this the proper place since the developers put the entries there. I know because I've used this registry tweak and still ran out of folder storage space, when I knew I was no where near the limit. Please look at my screenshots in the first post and read what I said about it. You can see by the registry trace exactly where explorer is pulling the value from.


Jeez, you're right Steve! I didn't realize this. :blush: Thanks for that. Funny enough though, I have a lot of emails from people who said it workes for them? Must be the 'placebo effect.' :lol: Would it be allright to use your reg file for my site? :wub:


I think they think it works, at least to a point. I have at last count, 100,000+ folders on various drives on my computer. So I tend to run out of space for folder settings, although 20,000 is way more than enough since most folders you never look at. In vista, they set the setting at 5000 but they stored the setting in the wrong place, so who knows what the actual default value is when no setting is given. I think it is pretty low though, probably below 100 somewhere.

You can use the registry file
0

#7 User is offline   64Bit Icon

  • Beginner
  • Icon
  • Group: Member
  • Posts: 45
  • Joined: 13-October 07
  • Gender:Male
  • Location:Helsinki
  • Windows Vista

Posted 21 October 2007 - 09:01 AM

I have Vista x64 and my regedit.exe said that the file would be invalid (I ran as an admin). Do I have to do something special with my 64bit version? I understood the remark on Vista 64 just in a descriptive sense not as a necessity to do anything different than with a 32bit version.
0

#8 User is offline   stevecn70 Icon

  • Uber 1337
  • Icon
  • Group: +Subscriber
  • Posts: 1,757
  • Joined: 09-February 07
  • Gender:Male
  • Location:PLANO, TX
  • Windows Vista

Posted 22 October 2007 - 11:51 PM

View Post64Bit, on Oct 21 2007, 04:00 AM, said:

I have Vista x64 and my regedit.exe said that the file would be invalid (I ran as an admin). Do I have to do something special with my 64bit version? I understood the remark on Vista 64 just in a descriptive sense not as a necessity to do anything different than with a 32bit version.


The registry file on his site has an Extra "W" on the first line, If you look, it says WWindows, Remove one of the W's and save and then double click it.
0

#9 User is offline   integra144 Icon

  • Beginner
  • Icon
  • Group: Member
  • Posts: 42
  • Joined: 23-May 07
  • Windows Vista

Posted 21 May 2008 - 07:26 PM

I would like to apply this, but I am somewhat computer illiterature. Could someone please list the instructions step by step with easy words. like open my computer or start>run.

I have Windows Vista x64 Ultimate
Thank you very much.
p.s.
To the author I am not insulting you. I actually admire your knowledge of computer.
0

#10 User is offline   BlueMan Icon

  • Beginner
  • Icon
  • Group: Member
  • Posts: 48
  • Joined: 22-April 07
  • Windows Vista

Posted 17 June 2008 - 12:21 AM

Hello. I'm struggling to follow these instructions. I'm using Vista 32bit. Any chance someone might be able to explain it in a more step by step way? lol.

View Poststevecn70, on Oct 8 2007, 11:54 PM, said:

Windows Registry Editor Version 5.00

; This is a Vista ONLY Folder Repair tool, This tool will force Vista to remember your folder settings by
; Modifying registry entries. Descriptions below explain what each step is doing.
; Steps:
; 1. Open up explorer and go to Tools->Folder Options->View and uncheck Remember each folder's View settings
; 2. Double Click this registry File



Thats as far as i got. It says double click this registry file. What registry file? lol. I'm hopeless. I know.
0

#11 User is offline   davehc Icon

  • Server
  • Icon
  • Group: Member
  • Posts: 307
  • Joined: 02-October 06
  • Gender:Male
  • Windows 7

Posted 17 June 2008 - 05:30 AM

Read th OP more carefully, Blueman. You must save the heavy type as a .reg file, - then run it.
0

#12 User is offline   Anomaly Icon

  • Newbie
  • Icon
  • Group: Member
  • Posts: 3
  • Joined: 26-June 08
  • Windows Vista

Post icon  Posted 26 June 2008 - 06:26 AM

OMG mate you can't imagine how happy you make me!!! Hail to you and the lowest bow i can make!
please write more wonderful fixes
----------------------------
for those who experience problems with compiling the reg file:
http://massmirror.com/ae5a34e280b492ea3a6766ea6b8bdd33.html

but please remember you will fail if you wan't read the instructions in this thread

This post has been edited by Anomaly: 26 June 2008 - 07:00 AM

0

#13 User is offline   Anomaly Icon

  • Newbie
  • Icon
  • Group: Member
  • Posts: 3
  • Joined: 26-June 08
  • Windows Vista

Posted 27 June 2008 - 07:40 AM

..still works :)
just a few questions: is there any minors of this patch,
and what should i do to clean the memory? (if i'll ever need to..)

_______________________
dear stevecn70, we still have problem with "Save as \ Open"-windows view:
Posted Image
in Windows XP icons was arranged with List by default and i like it that way.

in Vista it's wasn't correct nor before the patch nor after.
please tell me that you're going to fix it!!
0

#14 User is offline   tuttle Icon

  • Newbie
  • Icon
  • Group: Member
  • Posts: 3
  • Joined: 09-July 08
  • Windows Vista

Post icon  Posted 09 July 2008 - 05:25 PM

Steve:

Thank you for sharing that with us!

What about on PCs that have multiple user accounts? I applied your reg fix when logged in as Administrator in Vista Home Premium. Your fix applies only to HKEY_CURRENT_USER, so that would be just for my Administrator account. It would not apply to the Standard User account on this PC.

Is there a way to easily apply a .reg file fix for a Standard User account, or must I login as Administrator and launch Regedit, then Load Hive to load registry entries for the other user and then apply each of your steps manually?

This post has been edited by tuttle: 09 July 2008 - 06:44 PM

0

#15 User is offline   stevecn70 Icon

  • Uber 1337
  • Icon
  • Group: +Subscriber
  • Posts: 1,757
  • Joined: 09-February 07
  • Gender:Male
  • Location:PLANO, TX
  • Windows Vista

Posted 09 July 2008 - 08:09 PM

Assuming the other user accounts don't have admin privilages. You can run regedit.exe as administrator, put in your login information and then within regedit, you can go to FILE->IMPORT and load the file there for each user account.

You should be able to just type regedit in the search box in the start menu and when you see it pop up in the list, right click and choose run as admin
0

#16 User is offline   tuttle Icon

  • Newbie
  • Icon
  • Group: Member
  • Posts: 3
  • Joined: 09-July 08
  • Windows Vista

Posted 09 July 2008 - 11:08 PM

Hi Steve:

Thank you for the reply. I don't think that will work though, unless I misunderstand you.

Once regedit is run as administrator, HKEY_CURRENT_USER will show entries for the Administrator account and not for the other user. HKEY_CURRENT_USER is just a way of displaying the HKEY_USERS entries for the user that launched regedit. I even tested it to confirm: when logged into Windows as standard user, I ran regedit normally and created a new key under HKEY_CURRENT_USER, then exited regedit. Then I ran regedit as administrator and opened HKEY_CURRENT_USER and the new key was not there.

AFAIK, the only way the administrator can edit HKEY_USERS for a different user is to run regedit | File | Load Hive to load the other user's NTUSER.DAT in order to edit that user's registry entries.

That's why I wonder if I will have to perform your edits manually for that other user, or if there is some way to apply a .reg file to a specific user that has been loaded via Load Hive.

This post has been edited by tuttle: 10 July 2008 - 12:01 AM

0

#17 User is offline   tuttle Icon

  • Newbie
  • Icon
  • Group: Member
  • Posts: 3
  • Joined: 09-July 08
  • Windows Vista

Post icon  Posted 11 July 2008 - 02:34 PM

Hello again Steve:

I figured it out. I used Load Hive to load the other user's NTUSER.DAT into HKEY_USERS so I could edit that user's registry entries.

I have now applied your registry fix, but I'm a bit confused on what he sugests to do after that. You wrote:

"Since Auto Discovery is now off you will need to go to your shell folders (Pictures, Videos, Contacts, Music, etc.) and set them to the template you want, apply to subfolders, etc."

Should I now open each of the main folders under each user, (e.g. C:\Users\Larry\Documents, C:\Users\Larry\Pictures, C:\Users\Moe\Documents, C:\Users\Larry\Pictures, etc.),
then do Tools | Folder Options | View | Apply to Folders ?

OR, do I right-click each of those folders (C:\Users\Larry\Documents, C:\Users\Larry\Pictures, etc.) | Customize | select All Items | check "Also apply this template to all subfolders" ?

As you can see, I'm confused about the difference between settings in Tools | Folder Options and those in Customize.

What steps do I need to do now to set my folder settings and have them apply to all folders?
0

#18 User is offline   H.I.M Icon

  • Newbie
  • Icon
  • Group: Member
  • Posts: 2
  • Joined: 22-July 08
  • Windows Vista

Posted 22 July 2008 - 04:02 PM

View PostAnomaly, on Jun 26 2008, 09:26 AM, said:

OMG mate you can't imagine how happy you make me!!! Hail to you and the lowest bow i can make!
please write more wonderful fixes
----------------------------
for those who experience problems with compiling the reg file:
http://massmirror.com/ae5a34e280b492ea3a6766ea6b8bdd33.html

but please remember you will fail if you wan't read the instructions in this thread



hello everybody. this is my first message on this board :)

first, thanks for all the precious instructions. but i got problems with compiling the registry file. i checked Anomaly's link but i supose it's dead.

can someone upload the file again please?
0

#19 User is offline   stevecn70 Icon

  • Uber 1337
  • Icon
  • Group: +Subscriber
  • Posts: 1,757
  • Joined: 09-February 07
  • Gender:Male
  • Location:PLANO, TX
  • Windows Vista

Posted 22 July 2008 - 07:52 PM

View Posttuttle, on Jul 11 2008, 09:34 AM, said:

Hello again Steve:

I figured it out. I used Load Hive to load the other user's NTUSER.DAT into HKEY_USERS so I could edit that user's registry entries.

I have now applied your registry fix, but I'm a bit confused on what he sugests to do after that. You wrote:

"Since Auto Discovery is now off you will need to go to your shell folders (Pictures, Videos, Contacts, Music, etc.) and set them to the template you want, apply to subfolders, etc."

Should I now open each of the main folders under each user, (e.g. C:\Users\Larry\Documents, C:\Users\Larry\Pictures, C:\Users\Moe\Documents, C:\Users\Larry\Pictures, etc.),
then do Tools | Folder Options | View | Apply to Folders ?

OR, do I right-click each of those folders (C:\Users\Larry\Documents, C:\Users\Larry\Pictures, etc.) | Customize | select All Items | check "Also apply this template to all subfolders" ?

As you can see, I'm confused about the difference between settings in Tools | Folder Options and those in Customize.

What steps do I need to do now to set my folder settings and have them apply to all folders?


I meant while logged in as that user, you could run regedit as admin, but you figured it out the other way.

2nd question, I mean, right click the main folder as you listed, go to properties, customize, set the template, put a check on apply to subfolders and then click on ok.
0

#20 User is offline   mkr10001 Icon

  • Beginner
  • Icon
  • Group: Member
  • Posts: 40
  • Joined: 17-March 08
  • Windows Vista

Posted 22 July 2008 - 08:40 PM

am i correct in thinking this stops vista from assuming all new folders are for music?
0

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users