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
|
|