Find string, insert one after (batch)

March 2, 2011 at 16:34:41
Specs: Windows XP
Hi all,

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 ;)

See More: Find string, insert one after (batch)

Report •

March 2, 2011 at 17:24:56
Found an alternative way to achieve what I wanted to do (using reg.exe add) -- thanks anyway!

Report •
Related Solutions

Ask Question