PC Tools - Essential tools for your PC
Search
 
 
Features
 
 
Newsletter
 
Scripting Home > Shortcuts & Utilities

Remove Last Accessed Key Feature in Regedit Popular

Language: VBScript

Version: 1.0 (November 3, 2000)

Download: regedit.vbs (Use "Save Target As..." with IE5.5)

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
' Downloaded from the Scripting Guide for Windows
' http://www.pctools.com/guides/scripting/
' Version: 1.0 (November 3, 2000)

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

' End code

Disclaimer: This information is provided on an "as is" basis and all risk is with you. PC Tools Limited makes no warranties, express, implied or statutory, as to any matter whatsoever.

 
  Copyright © 1998-2008 PC Tools. All rights Reserved. Privacy Policy | Legal Notice 


Are you looking for Mac security software?
PC Tools now offers iAntiVirus, a free antivirus product for Mac OS X. Please click below to learn more.

Tell me more No, thanks

Remember my answer