Windows Explorer size reverting to 800x600

G

Guest

Hi,

I have a number of shortcuts to regularly used folders. Each opens windows
explorer using command line switches, for example: explorer.exe /e,/root,d:\
would open explorer with folders view ON, and the root of drive D: shown as
the root folder.

Problem with most of these shortcuts is that when I drag the window border
to the size I want, it will not always retain that setting between sessions.
Only one of these shortcuts will ALWAYS retain the size setting.
The others will always revert to exactly 800x600 pixels at some time after
the current session.

This is really driving me crazy. They all worked fine in Win 2000, on a new
machine with XP they don't.

Help!

Regards,

Mole
 
K

Keith Miller MVP

Are the folders stored on fixed, network or removable drives?

Are Explorer options set to remember each folder's view settings?

Possibly the index for saved views is full, and some entries are being deleted to make room for new
ones. If you run the following script & post back the results, we can see if that's the problem or
rule it out. Copy & paste the text between the dashed lines into notepad & save as a .vbs file.
Then double-click the file to run it.

----------------------------
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")

s1 = "winmgmts:{impersonationLevel=impersonate}"
s2 = "!\\.\root\default:StdRegProv"
Set oRegistry = GetObject(s1 & s2)

On Error Resume Next
iLimit = oWshShell.RegRead(conBagMRUSize)
If Err.Number <> 0 Then iLimit = 400
On Error Goto 0

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
 
G

Guest

Thanks for the reply Keith.

All of the folders are on a local drive ( the second fixed drive D: ).
There are several other networked drives but none of these are used in this
way.

Explorer options are set to remember each folders view settings.

The results of the script are as follows:

Max Views = 400
Index Entry Count = 400
Saved View Count = 400

Does this mean your suspicion is correct? Can the Max Views value be
increased in the registry?

Looking forward to your reply.

Thanks and regards,

Tiny Mole



Keith Miller MVP said:
Are the folders stored on fixed, network or removable drives?

Are Explorer options set to remember each folder's view settings?

Possibly the index for saved views is full, and some entries are being deleted to make room for new
ones. If you run the following script & post back the results, we can see if that's the problem or
rule it out. Copy & paste the text between the dashed lines into notepad & save as a .vbs file.
Then double-click the file to run it.

----------------------------
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")

s1 = "winmgmts:{impersonationLevel=impersonate}"
s2 = "!\\.\root\default:StdRegProv"
Set oRegistry = GetObject(s1 & s2)

On Error Resume Next
iLimit = oWshShell.RegRead(conBagMRUSize)
If Err.Number <> 0 Then iLimit = 400
On Error Goto 0

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]


Tiny Mole said:
Hi,

I have a number of shortcuts to regularly used folders. Each opens windows
explorer using command line switches, for example: explorer.exe /e,/root,d:\
would open explorer with folders view ON, and the root of drive D: shown as
the root folder.

Problem with most of these shortcuts is that when I drag the window border
to the size I want, it will not always retain that setting between sessions.
Only one of these shortcuts will ALWAYS retain the size setting.
The others will always revert to exactly 800x600 pixels at some time after
the current session.

This is really driving me crazy. They all worked fine in Win 2000, on a new
machine with XP they don't.

Help!

Regards,

Mole
 
G

Guest

Hi again Keith.

I've pre-empted your reply and looking at your script I realise that the
registry entry "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU Size" did
not exist.

A similar entry exists in
"HKCU\Software\Microsoft\Windows\Shell" and its value is set to 5000(dec).
I created the key that may be missing and also set its value to 5000.

Having re-sized three of the explorer windows which were reverting to
600x800, I re-ran your script, with the following results:

Max Views = 5000
Index Entry Count = 403
Saved View Count = 403

I hope this will fix the problem. It may take a little time to be sure, but
I'll post to this thread to let you know. Here's hoping.

TIA. Regards,

Tiny Mole


Tiny Mole said:
Thanks for the reply Keith.

All of the folders are on a local drive ( the second fixed drive D: ).
There are several other networked drives but none of these are used in this
way.

Explorer options are set to remember each folders view settings.

The results of the script are as follows:

Max Views = 400
Index Entry Count = 400
Saved View Count = 400

Does this mean your suspicion is correct? Can the Max Views value be
increased in the registry?

Looking forward to your reply.

Thanks and regards,

Tiny Mole



Keith Miller MVP said:
Are the folders stored on fixed, network or removable drives?

Are Explorer options set to remember each folder's view settings?

Possibly the index for saved views is full, and some entries are being deleted to make room for new
ones. If you run the following script & post back the results, we can see if that's the problem or
rule it out. Copy & paste the text between the dashed lines into notepad & save as a .vbs file.
Then double-click the file to run it.

----------------------------
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")

s1 = "winmgmts:{impersonationLevel=impersonate}"
s2 = "!\\.\root\default:StdRegProv"
Set oRegistry = GetObject(s1 & s2)

On Error Resume Next
iLimit = oWshShell.RegRead(conBagMRUSize)
If Err.Number <> 0 Then iLimit = 400
On Error Goto 0

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]


Tiny Mole said:
Hi,

I have a number of shortcuts to regularly used folders. Each opens windows
explorer using command line switches, for example: explorer.exe /e,/root,d:\
would open explorer with folders view ON, and the root of drive D: shown as
the root folder.

Problem with most of these shortcuts is that when I drag the window border
to the size I want, it will not always retain that setting between sessions.
Only one of these shortcuts will ALWAYS retain the size setting.
The others will always revert to exactly 800x600 pixels at some time after
the current session.

This is really driving me crazy. They all worked fine in Win 2000, on a new
machine with XP they don't.

Help!

Regards,

Mole
 
K

Keith Miller MVP

Should do the trick.

--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]


Tiny Mole said:
Hi again Keith.

I've pre-empted your reply and looking at your script I realise that the
registry entry "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU Size" did
not exist.

A similar entry exists in
"HKCU\Software\Microsoft\Windows\Shell" and its value is set to 5000(dec).
I created the key that may be missing and also set its value to 5000.

Having re-sized three of the explorer windows which were reverting to
600x800, I re-ran your script, with the following results:

Max Views = 5000
Index Entry Count = 403
Saved View Count = 403

I hope this will fix the problem. It may take a little time to be sure, but
I'll post to this thread to let you know. Here's hoping.

TIA. Regards,

Tiny Mole


Tiny Mole said:
Thanks for the reply Keith.

All of the folders are on a local drive ( the second fixed drive D: ).
There are several other networked drives but none of these are used in this
way.

Explorer options are set to remember each folders view settings.

The results of the script are as follows:

Max Views = 400
Index Entry Count = 400
Saved View Count = 400

Does this mean your suspicion is correct? Can the Max Views value be
increased in the registry?

Looking forward to your reply.

Thanks and regards,

Tiny Mole



Keith Miller MVP said:
Are the folders stored on fixed, network or removable drives?

Are Explorer options set to remember each folder's view settings?

Possibly the index for saved views is full, and some entries are being deleted to make room for new
ones. If you run the following script & post back the results, we can see if that's the problem or
rule it out. Copy & paste the text between the dashed lines into notepad & save as a .vbs file.
Then double-click the file to run it.

----------------------------
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")

s1 = "winmgmts:{impersonationLevel=impersonate}"
s2 = "!\\.\root\default:StdRegProv"
Set oRegistry = GetObject(s1 & s2)

On Error Resume Next
iLimit = oWshShell.RegRead(conBagMRUSize)
If Err.Number <> 0 Then iLimit = 400
On Error Goto 0

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]


Hi,

I have a number of shortcuts to regularly used folders. Each opens windows
explorer using command line switches, for example: explorer.exe /e,/root,d:\
would open explorer with folders view ON, and the root of drive D: shown as
the root folder.

Problem with most of these shortcuts is that when I drag the window border
to the size I want, it will not always retain that setting between sessions.
Only one of these shortcuts will ALWAYS retain the size setting.
The others will always revert to exactly 800x600 pixels at some time after
the current session.

This is really driving me crazy. They all worked fine in Win 2000, on a new
machine with XP they don't.

Help!

Regards,

Mole
 
G

Guest

Keith,

That really did seem to do the trick. Thank you so much for sorting out a
small but very annoying problem. I had tried searching for a solution on the
KB and this discussion group without success, but you really came up trumps,
and very quickly too.

Thanks again.

Regards,

Tiny Mole

Keith Miller MVP said:
Should do the trick.

--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]


Tiny Mole said:
Hi again Keith.

I've pre-empted your reply and looking at your script I realise that the
registry entry "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU Size" did
not exist.

A similar entry exists in
"HKCU\Software\Microsoft\Windows\Shell" and its value is set to 5000(dec).
I created the key that may be missing and also set its value to 5000.

Having re-sized three of the explorer windows which were reverting to
600x800, I re-ran your script, with the following results:

Max Views = 5000
Index Entry Count = 403
Saved View Count = 403

I hope this will fix the problem. It may take a little time to be sure, but
I'll post to this thread to let you know. Here's hoping.

TIA. Regards,

Tiny Mole


Tiny Mole said:
Thanks for the reply Keith.

All of the folders are on a local drive ( the second fixed drive D: ).
There are several other networked drives but none of these are used in this
way.

Explorer options are set to remember each folders view settings.

The results of the script are as follows:

Max Views = 400
Index Entry Count = 400
Saved View Count = 400

Does this mean your suspicion is correct? Can the Max Views value be
increased in the registry?

Looking forward to your reply.

Thanks and regards,

Tiny Mole



:

Are the folders stored on fixed, network or removable drives?

Are Explorer options set to remember each folder's view settings?

Possibly the index for saved views is full, and some entries are being deleted to make room for new
ones. If you run the following script & post back the results, we can see if that's the problem or
rule it out. Copy & paste the text between the dashed lines into notepad & save as a .vbs file.
Then double-click the file to run it.

----------------------------
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")

s1 = "winmgmts:{impersonationLevel=impersonate}"
s2 = "!\\.\root\default:StdRegProv"
Set oRegistry = GetObject(s1 & s2)

On Error Resume Next
iLimit = oWshShell.RegRead(conBagMRUSize)
If Err.Number <> 0 Then iLimit = 400
On Error Goto 0

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]


Hi,

I have a number of shortcuts to regularly used folders. Each opens windows
explorer using command line switches, for example: explorer.exe /e,/root,d:\
would open explorer with folders view ON, and the root of drive D: shown as
the root folder.

Problem with most of these shortcuts is that when I drag the window border
to the size I want, it will not always retain that setting between sessions.
Only one of these shortcuts will ALWAYS retain the size setting.
The others will always revert to exactly 800x600 pixels at some time after
the current session.

This is really driving me crazy. They all worked fine in Win 2000, on a new
machine with XP they don't.

Help!

Regards,

Mole
 
K

Keith Miller MVP

You're welcome. Glad it's fixed.


--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]


Tiny Mole said:
Keith,

That really did seem to do the trick. Thank you so much for sorting out a
small but very annoying problem. I had tried searching for a solution on the
KB and this discussion group without success, but you really came up trumps,
and very quickly too.

Thanks again.

Regards,

Tiny Mole

Keith Miller MVP said:
Should do the trick.

--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]


Tiny Mole said:
Hi again Keith.

I've pre-empted your reply and looking at your script I realise that the
registry entry "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU Size" did
not exist.

A similar entry exists in
"HKCU\Software\Microsoft\Windows\Shell" and its value is set to 5000(dec).
I created the key that may be missing and also set its value to 5000.

Having re-sized three of the explorer windows which were reverting to
600x800, I re-ran your script, with the following results:

Max Views = 5000
Index Entry Count = 403
Saved View Count = 403

I hope this will fix the problem. It may take a little time to be sure, but
I'll post to this thread to let you know. Here's hoping.

TIA. Regards,

Tiny Mole


:

Thanks for the reply Keith.

All of the folders are on a local drive ( the second fixed drive D: ).
There are several other networked drives but none of these are used in this
way.

Explorer options are set to remember each folders view settings.

The results of the script are as follows:

Max Views = 400
Index Entry Count = 400
Saved View Count = 400

Does this mean your suspicion is correct? Can the Max Views value be
increased in the registry?

Looking forward to your reply.

Thanks and regards,

Tiny Mole



:

Are the folders stored on fixed, network or removable drives?

Are Explorer options set to remember each folder's view settings?

Possibly the index for saved views is full, and some entries are being deleted to make
room
for new
ones. If you run the following script & post back the results, we can see if that's the problem or
rule it out. Copy & paste the text between the dashed lines into notepad & save as a .vbs file.
Then double-click the file to run it.

----------------------------
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")

s1 = "winmgmts:{impersonationLevel=impersonate}"
s2 = "!\\.\root\default:StdRegProv"
Set oRegistry = GetObject(s1 & s2)

On Error Resume Next
iLimit = oWshShell.RegRead(conBagMRUSize)
If Err.Number <> 0 Then iLimit = 400
On Error Goto 0

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]


Hi,

I have a number of shortcuts to regularly used folders. Each opens windows
explorer using command line switches, for example: explorer.exe /e,/root,d:\
would open explorer with folders view ON, and the root of drive D: shown as
the root folder.

Problem with most of these shortcuts is that when I drag the window border
to the size I want, it will not always retain that setting between sessions.
Only one of these shortcuts will ALWAYS retain the size setting.
The others will always revert to exactly 800x600 pixels at some time after
the current session.

This is really driving me crazy. They all worked fine in Win 2000, on a new
machine with XP they don't.

Help!

Regards,

Mole
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top