I have to write a batch file that search for a specific line in a file, and replace it with the filename.
To be specific, one file:
data
data
data
ABCD xyz <- this is the line that i have to replace. abcd always the same xyz always different
data
data
i'd like to change the xyz value to the name of the file without extension. So if the file is blabla.tpo then the file have look like:
data
data
ABCD blabla
data
....
I hope you guys can help me out. I'm not a programmer, these are 3d files and i have 1000 of them. I already googled every way, wrote hundreds of non working batch files. Tried FAR, notepad++ and who knows how much more without succes. If the program can do it, then i have to open files one by one, or it can't insert the filename, only exact string...