M.Siler said:
How do you create a .reg file that will delete a key? I know how to create
.reg file to add or modify entries but I'm not sure of what goes in the .reg
file to delete a key.
To delete a complete key, put a - immediately after the leading [ in a
..reg file. To delete a value within it, set the value to -
Example:
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}]
"UpperFilters"=-
"LowerFilters"=-
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdr4_2K]
from my 'cdgone.reg', which deletes the two values UpperFilters and
LowerFilters from the first key, and deletes the second key entirely.