Hello,
I'm trying to write a batch script that performs actions on each value
within a text file. The text file (myfile.txt) contains a string
similar to:
aa\bb\cc\dd\ee
My goal is to have a for loop that perfoms a set of actions on each of
these values individually. So just trying to get it to echo these
variables, I'm able to get it to echo either the first value in the
string or just the entire line. So I'm trying something like:
for /f "tokens=1 delims=\" %%i in (myfile.txt) do echo %%i
Now I'm sure I could add separate tokens and echo statements for %j %k
%l and %m, but this just won't work for me in the long run as the
number of values in myfile.txt can be anywhere between 1 and 1000
values. If anyone can help me figure this out, I would greatly
appreciate it.
Regards,
John
Bookmarks