Hey all,
I am not sure this is exactly the right spot for this, but I couldn't find any better place.
Using Windows XP, I need to search through about 10 or 12 files located in one folder, find "%headerinfo%" and replace that word with the entire contents of another file. I would prefer to automate this, so that I pick the file to insert, the folder to search, where to put the output, and the string to search for.
I don't mind doing this by passing parameters to a batch file. I know how to read the parameters and do the looping (I think), but I don't know the find and replace portion of it. Any help would be greatly appreciated.
A batch file would be my first choice, mainly because it will take less time than writing a full-blown .exe. If no one knows how to automate this, I will have to get into a more indepth project.
Thanks in advance,
Danny
I am not sure this is exactly the right spot for this, but I couldn't find any better place.
Using Windows XP, I need to search through about 10 or 12 files located in one folder, find "%headerinfo%" and replace that word with the entire contents of another file. I would prefer to automate this, so that I pick the file to insert, the folder to search, where to put the output, and the string to search for.
I don't mind doing this by passing parameters to a batch file. I know how to read the parameters and do the looping (I think), but I don't know the find and replace portion of it. Any help would be greatly appreciated.
A batch file would be my first choice, mainly because it will take less time than writing a full-blown .exe. If no one knows how to automate this, I will have to get into a more indepth project.
Thanks in advance,
Danny