Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 10-08-2006, 01:03 AM   #1 (permalink)
HELP AND SUPPORT
 
rakeshishere's Avatar
 
Join Date: Jun 2006
Posts: 1,603
Post Collapse Regedit Tree Without Disabling


RegEdit annoyingly remembers the last key you viewed and then the next time you use the application, it is expanded to that section. 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.

***********************************************

Dim objShell, RegKey, Q

Set objShell = CreateObject("WScript.Shell")

strQuote = chr(34)

RegKey = "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Applets\Regedit"

RegKey = RegKey & "\LastKey"

objShell.RegWrite RegKey, ""

objShell.Run "regedit"

***********************************************
rakeshishere is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 10-08-2006, 04:26 PM   #2 (permalink)
Wise Old Crow
 
blueshift's Avatar
 
Join Date: Apr 2005
Location: Inside the Pixel
Posts: 1,227
Default Re: Collapse Regedit Tree Without Disabling

why dont you just put up the links to the source?
__________________
http://twitter.com/blueshift155
blueshift is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by chris
- by icebags
- by Tenida

Advertisement




All times are GMT +5.5. The time now is 01:26 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2