Insert text after specific word using batch

Dark_Angel

New Member
I have a series of XML files which I need to add a few lines of text to however the placement of the additional text is very important otherwise the XML file won't work anymore.Luckily the new text needs to be inserted after the text \[code\]<Tools>\[/code\] which only occurs once in each XML file.How can I using Windows batch, find the text \[code\]<Tools>\[/code\] and the insert the additional text directly after that? (for argument's sake lets say the text to be added is \[code\]<HELLO WORLD>\[/code\])Kind regards EDIT:I just realized that I need to replace all instances of \[code\]<Tools>\[/code\] with \[code\]<Tools> <HELLO WORLD>\[/code\]How can I do this?
 
Back
Top