PC Review


Reply
Thread Tools Rate Thread

Deleting a registry key

 
 
--------------------
Guest
Posts: n/a
 
      7th Jan 2006
I'm hoping i'm using the right terminology here...but here goes.

I have comfortable with regedit and manually deleting a key on the left of
the regedit screen and all it's associated entries on the right.

Is there a way to have simply an icon on the desktop that I could
doubleclick which would simply do the same thing.

As an example, the key and all entries associated with it that I would like
to delete would be HKEY_LOCAL_MACHINE\SOFTWARE\TEST

Thank you


 
Reply With Quote
 
 
 
 
Dave Patrick
Guest
Posts: n/a
 
      7th Jan 2006
If you want to remove a key and all it's underlying values then you'll need
to construct your .reg file with a - minus sign in front of the key you want
to remove.

An example file to remove a file association .zzz from HKCR
-----------------Begin File-----------
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.zzz]
----------------End File-------------

(note the minus sign in front of HKEY)


If you need to delete only certain values, for example the string value
"InfoTip"="Contains zzz files"

Then put a minus sign after the equals sign without "quotes", something like
"InfoTip"=-

So your .reg file would look like
----------------Begin File------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.zzz]
"InfoTip"=-
----------------End File-------------

regedit /s filename.reg to import silently

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"--------------------" wrote:
| I'm hoping i'm using the right terminology here...but here goes.
|
| I have comfortable with regedit and manually deleting a key on the left of
| the regedit screen and all it's associated entries on the right.
|
| Is there a way to have simply an icon on the desktop that I could
| doubleclick which would simply do the same thing.
|
| As an example, the key and all entries associated with it that I would
like
| to delete would be HKEY_LOCAL_MACHINE\SOFTWARE\TEST
|
| Thank you
|
|


 
Reply With Quote
 
Mark V
Guest
Posts: n/a
 
      8th Jan 2006
In microsoft.public.win2000.registry -------------------- wrote:

> I'm hoping i'm using the right terminology here...but here goes.
>
> I have comfortable with regedit and manually deleting a key on
> the left of the regedit screen and all it's associated entries
> on the right.
>
> Is there a way to have simply an icon on the desktop that I
> could doubleclick which would simply do the same thing.
>
> As an example, the key and all entries associated with it that I
> would like to delete would be HKEY_LOCAL_MACHINE\SOFTWARE\TEST


Dave has provided details on using a REG file.

One might also do this using the MS reg.exe CLI utility (probably
in a small batch file that has a Shortcut on the Current User's
desktop).

Fully automated registry editing is hazardous of course. Be sure
you have a Full Registry Backup (not "Exports") before you start
your testing of either solution.

Comment. If your TEST Key is not required to be under
HKLM\Software\, then it's a bit safer to put it under HKCU or
HKCU\Software\.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Registry Deleting. =?Utf-8?B?d2luZG93IHJvb2tpZQ==?= Windows XP General 3 30th Nov 2005 02:21 AM
Deleting a Registry Key Keith Microsoft Windows 2000 Registry Archive 0 5th Feb 2004 11:09 AM
deleting registry key in dos royce Microsoft Windows 2000 Registry 1 7th Nov 2003 06:37 PM
deleting registry key in dos royce Microsoft Windows 2000 Registry Archive 2 7th Nov 2003 06:37 PM
deleting registry key in dos royce Microsoft Windows 2000 Registry Archive 0 7th Nov 2003 05:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:25 PM.