Welcome Guest ( Log In | Register )




Collapse

Top Submitters

· NickTheGreek (127)
·  (127)
· www.yourforum.gr (61)
· nickpar (20)
· Big (1)

Collapse

Random Tutorials

Overtype mode is disabled in Word

Tutorial name: Overtype mode is disabled in Word
Submitted by: nickpar


Collapse

Announcments


Welcome to Tutorial System!


Print this Tutorial 

Remember Folder Settings (FINALLY Works!)

Tutorial Information
Name: Remember Folder Settings (FINALLY Works!)
Submitter: NickTheGreek
Category: Windows Tutorials
Submitted: 12 Oct 2007
Updated: 12 Oct 2007
Views: 715
Rating: This tutorial is unrated.
Remember Folder Settings (FINALLY Works!)
View All Tutorials By This Member
View Discussion Topic
Description:
settings for Windows Vista
Tutorial Instructions
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 what Explorer is actually looking for for it's values. One key thing is the BagMRU Size, which in XP was 400, and Vista (which doesn't work) is 5000. The BagMRU size is the maximum number of folders that Vista will remember the view settings on. 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 two 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.

Now, the real kicker and goof on Microsoft's part. If you do a fresh install of vista, like I just did on VPC 2007, 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]

Which is the same as where they are for XP, so everyone thought you just went in and upped the value. Default is 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:

http://www.nickpar.dyndns.org/uploads/file...hics/bagmru.JPG

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. ???? Yep, it is looking in [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell] which is really where it should be looking since as mentioned above, the folder settings moved to this new location. 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 you have the entry exists, I have my BagMRU size set to 20,000. Notice the trace reflects this:

http://www.nickpar.dyndns.org/uploads/file...ics/bagmru2.JPG

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"


; ***** NOTE FOR VISTA 64 *****
; Users will see a a Wow6432Node in registry traces when Folder settings are saved.
;
; PATH:
; HKEY_CURRENT_USER\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell
;
; This is virtually linked to the Vista 32 Folder storage location located at:
; HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell
;
; What happens in either location will be a duplicate of the other location.
Comments
There have been no comments made as of yet. Why not be the first?



1 user(s) active
Active Users 1 guests, 0 members, 0 anonymous members
Sorted by Last Click
Quick Stats
Board Stats There have been a total of 244 tutorials in 6 categories and 0 sub-categories with 111865 views and 24 comments
The newest tutorial is How to Add “Move to” or “Copy to” to Windows 10¢s Context Menu by NickTheGreek

RSS Lo-Fi Version Time is now: 18th April 2024 - 10:19 AM
Skin and Graphics by Dan Ellis and Anubis. Hosting by Forums & More © 2005-2011.
InvisionGames - Your #1 Arcade Games Repository | AllSigs - Signatures for all | Rock Band + Guitar Hero = RockHero ! | The Remoters - Remote Assistance | FileMiners - You ask, We find