|I have two lists of text files:|
The two lists of files (arrays) are of the same length: i.e. the same number of files.
I want to use each names of file in list A (*.met) to substitute a fixed string in each corresponding file in list B: in other words for file *1.met I want to store its complete name in a variable (dynamic?) and use it to find and replace a string in file *1.upl (let’s say that the string to be substituted in the recipient file - *1.upl - is “abcde”); for file *2.met and *2.upl I want to do the same and so on. I have in total 366 files with one occurrence – string substitution - per file (the string to be substituted in files *.upl is always the same i.e. “abcde”)
I kwon somehow by the help of this great forum how to deal with the string substitution in one file
for /f "tokens=*" %%a in (file) do (
But I’m really in trouble in the case above mentioned because there is the need to combine string substitution of many files and variable assignement
Any help much appreciated