PDA

View Full Version : Delete Registry Value



ScottCandler
11-27-2000, 05:04 PM
I need to delete an individual registry value using a .reg file. I do not want to delete the entire key or use an .ini file. This method works for whole keys, but not a value...
Deleting keys or values using a REG file
It is also possible to delete keys and values using REG files. To delete a key start by using the same format as the the REG file above, but place a "-" symbol in front of the key name you want to delete. For example to delete the [HKEY_LOCAL_MACHINE\Software\RegEdit] key the reg file would look like this:


REGEDIT4

[-HKEY_LOCAL_MACHINE\Software\RegEdit]

The format used to delete individual values is similar, but instead of a minus sign in front of the whole key, place it after the equal sign of the value. For example, to delete the value "Window Title" the REG file would look like:


REGEDIT4

[HKEY_LOCAL_MACHINE\Software\RegEdit]
"Window Title"=-

Can you help me?

Simon Clausen
11-27-2000, 09:18 PM
See the other post in the comments section, as mentioned this method does work to delete just the value. If you are having problems please post an example of the REG file you are using.

Simon Clausen
---
WinGuides.com - Windows Guide Network
http://www.winguides.com/