I need to create a .bat file that will remove registry a particular registry key, when you double click on it:
Create a text file containing the following:
Windows Registry Editor Version 5.00
Create another text file with the following content:
regedit /s key.reg
- Name it as delete.bat .
- Run the second file as admin.
Thanks to kaumune
for this tip.
This document, titled « Windows - A .bat file to delete a particular registry key », is available under the Creative Commons
license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM