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\BagMRU Size" for reading.
Code: 80070002
Source: WshShell.RegRead
-----------
:
Sorry, didn't check it after using '_' to avoid line wrap
Try this:
----------------------------------
Const conBagMRUSize = _
"HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU Size"
Const conBagMRUNodeSlots = _
"HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU\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=impersonate}!\\.\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]
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.
:
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\BagMRU Size"
Const conBagMRUNodeSlots = & _
"HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU\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=impersonate}!\\.\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]
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?