Perhaps this is the end of this thread.
Here is what I wanted to say.
DOS batch can be used for search and insert in a text file. But it is not the best choice. Others tools work better and are easy to use.
Is this for use by just one administrator?
Is this something that would be done on a daily basis?
A batch file is sometimes needed for a number of users who do not have other tools available. Is that the case here?
Batch can be used with other tools Such as VBScript and Powershell.
Also, some programmers even import tools used in Unix or Linux.
Such as
sed and
grep.
from CH search:
About grep
grep, which stands for "global regular expression print," processes text line by line and prints any lines which match a specified pattern.
About sed
sed, short for "stream editor", allows you to filter and transform text
Also see:
http://stackoverflow.com/questions/1169927/using-sed-and-grep-to-search-and-replaceThere are versions of sed and grep[ that work in the windows command line.
Just trying to help.