I have a text file (list.txt) which is a list filenames that can be simplified as below:
a
b
c
d
I need a "for" loop that does something like below:
set variable1=a
set variable2=b
do something with variable1 & 2, lets say variable1 + variable2>>output.txt
then restart the loop from the second line:
set variable1=b
set variable2=c
perform the addition>>output.txt
then from the third line:
set variable1=c
set variable2=d etc..
and keep going until the end of my list.txt
It seems batch file has difficulty when handling multiple lines of data within a loop.
Could someone kindly shed some light on this? Thanks in advance.