BATCH - Find string in text file and add a new string after that line
问题 I'm trying to search a text file for a particular string from a bat file. If the string exist, add a new string after it on the next line. I can't seem to get the code below working correctly. Any Ideas? This is the string i'm searching for in my text file. [/Script/MyGame.Mode] Here's what the text file looks like. [/Script/Config.Mode] Something here 1 Something here 2 [/Script/MyGame.Mode] Something here 1 Something here 2 [/Script/Edit.Mode] Something here 1 Something here 2 And here's