General discussion

Locked

Registry opens to last key

By geo926 ·
How can I keep regedit from opening to the last key I was viewing?

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Registry opens to last key

by thoreau In reply to Registry opens to last ke ...

The Windows 2000 and ME version of regedit includes a new feature to remember the last key that was accessed before the program was closed. This script stops regedit from remembering the last key and instead opens regedit at the top "My Computer" folder.

Create a shortcut on your desktop to this script and double-click on it to launch regedit without the last key memory.

To copy the script either use the download link above or cut and paste the following code into a text document and name it regedit.vbs

' Begin code for regedit.vbs

Dim WSHShell
Set WSHShell=Wscript.CreateObject("Wscript.Shell")
WSHShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\LastKey"
WSHShell.Run "REGEDIT"

' End code

Collapse -

Registry opens to last key

by geo926 In reply to Registry opens to last ke ...

Poster rated this answer

Collapse -

Registry opens to last key

by RAMAC-9846778 In reply to Registry opens to last ke ...

Use regedit and drill down to

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit

Double-click the LastKey value name in the right hand pane and clear the string. Press OK.

Collapse -

Registry opens to last key

by geo926 In reply to Registry opens to last ke ...

Poster rated this answer

Collapse -

Registry opens to last key

by schitzoid In reply to Registry opens to last ke ...

Both previous posts will only work untill the next time you use regedit. For a permanent fix, use regedt32, go to the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVers ion\Applets\Regedit key, clear the LastKey value, then security>permissions from the file menu.
MS Knowledge Base article : http://support.microsoft.com/support/kb/articles/Q244/0/04.ASP
windows 2000 magazine article : http://www.win2000mag.com/Articles/Index.cfm?ArticleID=16215

Collapse -

Registry opens to last key

by geo926 In reply to Registry opens to last ke ...

Poster rated this answer

Collapse -

Registry opens to last key

by geo926 In reply to Registry opens to last ke ...

This question was closed by the author

Back to Windows Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums