|I have a batch file that exports a registry key to a text (.reg) file. What I want to do is then open the reg file, and insert a line to delete a key first, right after the "Windows Registry Editor Version 5.00" line, so that it ends up looking something like this:|
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Software\mykey] <--- this is the line that gets inserted
What do I need to add to my batch file to insert this line?