For me to remember:
[codesyntax lang=”text” title=”Registry Key”]
1 2 3 4 5 |
Windows Registry Editor Version 5.00 [-HKEY_LOCAL_MACHINE\SOFTWARE\key_to_be_deleted] [/codesyntax] |
If you want to delete a key from the registry you place a “-” before the name of the key in the registry file.
Example:
If your registry file is called “sample.reg” you can now issue the command “regedit sample.reg /s” and the key “key_to_be_deleted” including all subkeys are deleted from the registry.
Deleting Registry Keys via Batch
Nice one.
This makes moving things around (like a Notes install) muuuch easier.