Strict Standards: Non-static method AL_HELPER::SetupPaths() should not be called statically in /home/software/public_html/windowsxp/init.php on line 15
Collapse Regedit Tree Without Disabling - Printer Friendly
Windows XP A to Z -
Collapse Regedit Tree Without Disabling
Super Admin
By Super Admin
Published on 02/25/2005
RegEdit annoyingly remembers the last key you viewed and then the next time you use the application, it is expanded to that section.

Collapse Regedit Tree Without Disabling

There are other tweeks that change the permissions on the Regedit applet in the registry to deny access.

That does work. However, in the process, you lose the ability to create favorites.

A few lines of code solves the problem. You can then create a shortcut to the .vbs file and change the icon to the regedit icon and put it on the desktop, add it to a start menu, whatever. Just put these few lines in a text editor and save as the xxxxxx.vbs.

REM ***********************************************

Dim objShell, RegKey, Q

Set objShell = CreateObject("WScript.Shell")

            strQuote = chr(34)      

RegKey = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit"

RegKey = RegKey & "\LastKey"

objShell.RegWrite RegKey, ""

objShell.Run "regedit"

REM ***********************************************