I am very new, I have trough a week of tutorial with batch programing and got somewhere. How ever I still have not figured out this:
my list.txt has lines as
date, name, status, info, comment exp: 2014-01-01, Jenny, OK, blabaa, nocomment
for /f "tokens=* " %%a in (list.txt) do (
set string=%%a
call set datearray[i] =%string:~0,10%
call set namearrat[i]=%string:~12,9%
call set statusarray[i]=%string:~23,6%
call set infoarray[i]=%string:~31,3%
call set comment[i]=%string:~36,4%
)
then later do a forloop to write out the items in another batfile
I need help with 2 things: 1) my code is wrong please help with an real example I am new on this 2) how do I get the value out of the arrays ?
I know there are some small answers in the forum but I can not understand them. Thanks for all help please do explain in real examples so I can understand better.