How select multiple values for variable from given set in DOS batch file

anoopcr

Honorable
Mar 16, 2012
1
0
10,510
Hello,

here is my issue.
I have a set of strings like word1,word2,word3 and I have use these strings one by one.I am using variable option in DOS batch file..
I have to use word1 as variable value and word2 as variable second time and word3 third time..

can someone tell e how to do this ?
 
Check out the "FOR" command, although that works with a set of file names. One kludgy way to do this might be to create files named whatever you want and then parse the directory that contains them. The syntax of all this can be found by going to a DOS prompt and typing HELP FOR.