I've spent a few hours with For loops and all sorts of things (using all the examples I can find on this site), but can't get a satisfactory result (mostly to do with the characters I'm trying to find and replace, I think).
I have a registry file that looks like this:
Windows Registry Editor Version 5.00
What I'd like to do is insert the string
Under each line that ends with ]. How would I achieve this using only inbuilt command line stuff (no external programs)?
Extra bonus points if it doesn't insert the line under the HKEY_CURRENT_USER\Software\Valve\Steam\Apps key ;)