Sign in with
Sign up | Sign in
Your question

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

Tags:
  • DOS Batch
  • Windows 7
Last response: in Windows 7
Share
March 16, 2012 4:00:54 PM

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 ?

More about : select multiple values variable set dos batch file

a b $ Windows 7
March 16, 2012 4:25:33 PM

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.
m
0
l
!