Hello and first thank you for taking the time to read this.
I am trying to write a simple batch file that will do one thing to every text file in a folder. The text file has the following format:
Format of txt files:
##### [delimeter "tab"] #####
##### [delimeter "tab"] #####
##### [delimeter "tab"] #####
....
EOF
I need to add one line as a header to each file in the folder. The header should consist of part of the filename. The filename will always have 2-3 letters and 3-5 numbers. I need the numbers with x and y appended to it.
For instance for
File CJF0185.PRN
0185X [delimeter "tab"] 0185Y
##### [delimeter "tab"] #####
##### [delimeter "tab"] #####
##### [delimeter "tab"] #####
....
EOF
So far I have only been able to add text to the first line of a single file that I know the name of.