title: Windows Batch scripting(splitting of strings using multiple delimiters)
body: <p>I have a property file (test.properties) which has a variable which holds multiple strings.
  <code>
  </code>Ex: var=str1;str2;str3;.....</p>
  
  <p>I need to use the above properties file in my batch file (abc.bat), so that i could print the values line by line. Output of the batch file should look like this...
  <code>
  </code>
  <code>str1
  </code>
  <code>str2
  </code>
  <code>str3
  </code>
  <code>...
  </code>
  <code>...
  </code>
  (and so on)</p>
  
  <p>Any help could be appreciated..Thanx:)</p>
  
  <p>Ive tried to use "for loop" to seperate the values from first delimiter(=) in this way...</p>
  
  <pre><code>IF EXIST "test.properties"
  (
      ECHO test.properties file found
      for /F "tokens=1,2 delims==" %%A IN (test.properties) DO
      (
          set value="%%B"
          ECHO !value!
      ) 
  )
  Output=str1;str2;str3;....
  </code></pre>
  
  <p>Now if i want to parse the strings in "!value!" line by line i use ...</p>
  
  <pre><code>for /F "tokens=* delims=;" %%x IN ("!value!") DO
  (
      ECHO %%x
  )
  </code></pre>
  
  <p>I am facing error.....Any help?</p>