Booster2ooo, on Jul 8 2005, 02:17 PM, said:
As the post is opened, i'll ask a little question, with a dos cmd, how to remove a reg key ? To add one, it's quite simple, regedit /s file.reg, but how del ???
To remove an entire "tree" from the registry using REGEDIT and a .REG file, just add a minus sign before the tree name:
REGEDIT4
[-HKEY_CURRENT_USER\DummyTree]
will remove the entire tree "DummyTree".
To remove an individual item from the registry, place the minus sign after the equal sign:
REGEDIT4
[HKEY_CURRENT_USER\DummyTree]
"ValueToBeRemoved"=-
will remove the individual value "ValueToBeRemoved" from "DummyTree".
OR
You can use the "reg delete" command... Load up a cmd prompt and type "reg delete /?" for more options
Examples:
REG DELETE HKLM\Software\MyCo\MyApp\Timeout
Deletes the registry key Timeout and its all subkeys and values
REG DELETE \\ZODIAC\HKLM\Software\MyCo /v MTU
Deletes the registry value MTU under MyCo on ZODIAC
EDIT: belgther, posted at the same time.. :)