Quote:
Once upon a time, I had a .REG file which would write the size and position entries into the registry for the position of Internet Explorer. I don't have it anymore, but I do recall that it was the BAGMRU thing mentioned earlier in this thread.



Was it something like this:

Go to:

HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU
(right-click on BagMRU and choose delete)

HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags
(right-click on Bags and choose delete)

NOTE: The keys you deleted will be re-created next time you log in to Vista so don't worry.

Now log out/reboot and you should be able to save the window positions. You will encounter this problem again, I don't know what triggers the folder settings to be deleted but here's what I did to make it easier the next time it happens.

1. Go to Run and type: gpedit.msc and hit enter.

2. Locate "Script (start/shutdown)" under computer configuration and double click on shutdown to the right.

3. Click on the "Show/view files" button and keep the new window open.

4. Open up notepad and paste this in there:

Windows Registry Editor Version 5.00

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

Save the file as .reg and place it in the folder/window you opened on step 3.

5. Go back to the properties window for shutdown script and click add.

6. In the "Script name" field type: regedit.exe
In the "Script parameters" type: /S C:\Windows\System32\GroupPolicy\Machine\Scripts\Shutdown\######.reg

###### is where you put the name of the .reg file you created on step 4.

7. Now go to "User configuration" > "Script (Log in/Log out)" and do the exact same thing with the Log out option to the right.

This will make sure that the "BagMRU" and "Bags" keys are deleted every time you shut down or reboot and you will be able to keep the window positions longer. This isn't a permanent fix (at least not for me) but when it happens you just log out and back in and that's it.


Hmmm... looks complicated. Your idea of just putting this:

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell\BagMRU]
[-HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell\Bags]

in a batch file to run at startup seems a bit simpler. I'll work on that.

tanstaafl.
_________________________
"There Ain't No Such Thing As A Free Lunch"