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
[HKEY_CURRENT_USER\Software\Valve\Steam\Apps]
[HKEY_CURRENT_USER\Software\Valve\Steam\Apps\10]
"userconfigcrc"=dword:146d9867[HKEY_CURRENT_USER\Software\Valve\Steam\Apps\10090]
"userconfigcrc"=dword:dbc74023[HKEY_CURRENT_USER\Software\Valve\Steam\Apps\10150]
"userconfigcrc"=dword:dbc74023[HKEY_CURRENT_USER\Software\Valve\Steam\Apps\10500]
"userconfigcrc"=dword:dbc74023=======================
What I'd like to do is insert the string
"EnableCacheLoading"=dword:00000001
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 ;)
Found an alternative way to achieve what I wanted to do (using reg.exe add) -- thanks anyway!
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |