I have customer pizza lists that I have saved into 5 separate .txt files from my database in this format:
Filename = 25Percent.TXT
"555-1211"
"555-1212"
"555-1223"
Each list is a phone number in quotes and each list varies in length.
First question
I have two sets of variables that I would like to replace with each quote in the 5 text files.
The two variables would be like:
Var A = < Discount Pizza price for phone number is "
Var B = " 25 % >
I would like to run a batch file that reads each line in the text file and writes into another text file the following, replacing the quotes with the variables:
New Filename = 25Percentfinished.TXT
< Discount Pizza price for phone number is "555-1211" 25 % >
< Discount Pizza price for phone number is "555-1212" 25 % >
< Discount Pizza price for phone number is "555-1223" 25 % >
Then I would repeat for 30percent.txt, 35percent.txt, 40percent.txt and finally 50percent.txt file.
Second Question
I would also like to append the 5 new files together
copy file1+file2+file3+...+fileN bigfile