- Folder Status
- Posted by Karim434 on February 25th, 2006
I have left a thread on here before about getting rid of pictures which I
assigned to one folder that were subsequently being assigned to nearly all
the others at random. I was informed how to stop this by deleting Thumb.db
via Command Prompt and that worked fine.
Unfortunately I have another problem with the folders in windows which I
suspect is associated with the original issue. The status of my folders seem
to change without my direct intervention... they will become or cease to be
document, video, picture or music folders without my altering their
particular folder properties. This is particularly annoying because the only
way I can restore normality is to regularly reset the general folder view and
return the few that I need to see in a particular way to the view I want. Can
anyone help?
- Posted by Keith Miller MVP on February 25th, 2006
Sounds like the index for saved views may be getting full & deleting some entries to make room for
others. Are the folders that lose their settings on the desktop?
To get a better idea of what's going on, please copy the text between the lines below into notepad
and save as a .vbs file. Then double-click the file to run it. It is a small script which will
report on several reg entries relating to saved views. Please post back with the info obtained.
--------------------------------
Const conBagMRUSize = & _
"HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMR U Size"
Const conBagMRUNodeSlots = & _
"HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMR U\NodeSlots"
Const HKCU = &H80000001
Const conBagsPath = "Software\Microsoft\Windows\ShellNoRoam\Bags"
dim oWshShell, oRegistry, iLimit, iMRUEntries, arrSubKeys, iBagCount
'Assign objects
Set oWshShell = CreateObject("WScript.Shell")
Set oRegistry = & _
GetObject("winmgmts:{impersonationLevel=impersonat e}!\\.\root\default:StdRegProv")
iLimit = oWshShell.RegRead(conBagMRUSize)
iMRUEntries = UBound(oWshShell.RegRead(conBagMRUNodeSlots)) + 1
oRegistry.EnumKey HKCU, conBagsPath, arrSubKeys
iBagCount = UBound(arrSubKeys) + 1
sMsg = "Max Views = " & iLimit & vbcrlf & _
"Index Entry Count = " & iMRUEntries & vbcrlf & _
"Saved View Count = " & iBagCount
Msgbox sMsg
--------------------------------------------
--
Good Luck,
Keith
Microsoft MVP [Windows XP Shell/User]
"Karim434" <Karim434@discussions.microsoft.com> wrote in message
news:3B8A157D-35E1-4A00-8387-C14A2D84B3E0@microsoft.com...
- Posted by Karim434 on February 25th, 2006
I'm sorry to say I didn't get anything that looked like a report... a
'Windows Script Host' dialogue box appeared with the following message:
------------
Script: C:\Documents and Settings\... Text.vbs
Line: 1
Char: 23
Error: Syntax Error
Code: 800A03EA
Source: Microsoft VBScript compilation error
-----------
I probably made a mistake in following your instructions. I can say that the
folders I am talking about are all in 'My Documents'. I don't know if the
problem affects any others. Thanks for your help and I hope you can advise
further.
"Keith Miller MVP" wrote:
- Posted by Keith Miller MVP on February 25th, 2006
Sorry, didn't check it after using '_' to avoid line wrap 
Try this:
----------------------------------
Const conBagMRUSize = _
"HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMR U Size"
Const conBagMRUNodeSlots = _
"HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMR U\NodeSlots"
Const HKCU = &H80000001
Const conBagsPath = "Software\Microsoft\Windows\ShellNoRoam\Bags"
dim oWshShell, oRegistry, iLimit, iMRUEntries, arrSubKeys, iBagCount
'Assign objects
Set oWshShell = CreateObject("WScript.Shell")
Set oRegistry = _
GetObject("winmgmts:{impersonationLevel=impersonat e}!\\.\root\default:StdRegProv")
iLimit = oWshShell.RegRead(conBagMRUSize)
iMRUEntries = UBound(oWshShell.RegRead(conBagMRUNodeSlots)) + 1
oRegistry.EnumKey HKCU, conBagsPath, arrSubKeys
iBagCount = UBound(arrSubKeys) + 1
sMsg = "Max Views = " & iLimit & vbcrlf & _
"Index Entry Count = " & iMRUEntries & vbcrlf & _
"Saved View Count = " & iBagCount
Msgbox sMsg
---------------------------------------------------------
--
Good Luck,
Keith
Microsoft MVP [Windows XP Shell/User]
"Karim434" <Karim434@discussions.microsoft.com> wrote in message
news:37F30BAE-7F81-4DC5-8D03-1DDCE17259FB@microsoft.com...
- Posted by Karim434 on February 25th, 2006
Sorry, looks like another Widows Script Host Error...
-----------
Script: C:\Documents and Settings\... Text.vbs
Line: 16
Char: 1
Error: Unable to open registry key
"HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMR U Size" for reading.
Code: 80070002
Source: WshShell.RegRead
-----------
"Keith Miller MVP" wrote:
- Posted by Keith Miller MVP on February 25th, 2006
OK. That means you don't have a 'BagMRU Size' entry in the registry, so windows is defaulting to
saving 400 folders.
You can run the edit here:
http://www.kellys-korner-xp.com/xp_tweaks.htm
Line 2, left-hand column
It will increase your limit, but also wipe out currently saved views.
If you want to set view templates so that all subfolders of a particular folder use the same
settings, download my script:
http://mysite.verizon.net/res18hr7/FVM3.zip
It will give you the option to up your limit, in addition to preserving or deleting currently saved
views.
--
Good Luck,
Keith
Microsoft MVP [Windows XP Shell/User]
"Karim434" <Karim434@discussions.microsoft.com> wrote in message
news:B672ABBC-B432-42E2-B823-F52504BCA586@microsoft.com...
- Posted by David Candy on February 25th, 2006
Why do you keep saying 400. It is 5000 in SP2.
--
--------------------------------------------------------------------------------------------------
Goodbye Web Diary
http://margokingston.typepad.com/har....html#comments
=================================================
"Keith Miller MVP" <k.miller79@verizon.net> wrote in message news:OG5b5gkOGHA.1832@TK2MSFTNGP11.phx.gbl...
- Posted by D. Spencer Hines on February 25th, 2006
Good Question.
DSH
"David Candy" <.> wrote in message
news:OFIInzlOGHA.2268@TK2MSFTNGP09.phx.gbl...
Why do you keep saying 400. It is 5000 in SP2.
--------------------------------------------------------------------------------------------------
Goodbye Web Diary
http://margokingston.typepad.com/har....html#comments
=================================================
"Keith Miller MVP" <k.miller79@verizon.net> wrote in message
news:OG5b5gkOGHA.1832@TK2MSFTNGP11.phx.gbl...
- Posted by Keith Miller MVP on February 25th, 2006
I haven't gotten around to installing SP2 yet :-)
We don't know whether or not the O.P. has...
But doesn't SP2 up the limit by setting 'BagMRU Size' to 5000? Or has the default been changed in
code? The value was not in the O.P.'s registry, so the hard-coded default would be in effect, no?
--
Good Luck,
Keith
Microsoft MVP [Windows XP Shell/User]
"David Candy" <.> wrote in message news:OFIInzlOGHA.2268@TK2MSFTNGP09.phx.gbl...
Why do you keep saying 400. It is 5000 in SP2.
--
--------------------------------------------------------------------------------------------------
Goodbye Web Diary
http://margokingston.typepad.com/har....html#comments
=================================================
"Keith Miller MVP" <k.miller79@verizon.net> wrote in message
news:OG5b5gkOGHA.1832@TK2MSFTNGP11.phx.gbl...
- Posted by David Candy on February 26th, 2006
It's not there by default.
Most people's computers install service packs automatically. Assuming they haven't would be the minority of cases.
Also older XP stored 200 folders. The 400 comes from 200 for Shell (local folders) and 200 for ShellNoRoam (network folders and desktop). The bagmru applies only to where it is set (shell or shellnoroam).
I don't know if 5000 is 2500 x 2, 5000 x 2, or maybe they now have different defaults.
See http://support.microsoft.com/default.aspx/kb/813711
--
--------------------------------------------------------------------------------------------------
Goodbye Web Diary
http://margokingston.typepad.com/har....html#comments
=================================================
"Keith Miller MVP" <k.miller79@verizon.net> wrote in message news:ee5zu9mOGHA.344@TK2MSFTNGP11.phx.gbl...