title: for-loop and delimeters
body: <p>I need e fast way to insert a few rows of structured data in a bat file
  I've used an array called myarray to scan and "read" my values but it does not work and i don't understand why
  This is my code:</p>
  
  <pre><code>@echo off
  set myarray[1]=myfield1#myfield2#mysubfield31;mysubfield32#myfield4
  for /f "tokens=1-9 delims=#" %%a in ('echo %myarray[1]%') do (
      echo field1 is %%a
      echo field2 is %%b
      echo field3 is %%c
      echo field4 is %%d
      for /f "tokens=1-9 delims=;" %%k in ('echo %%c') do (
          echo subfield3 is %%k
          echo subfield3 is %%l       
      )
  )
  </code></pre>
  
  <p>the output is like this:</p>
  
  <pre><code>field1 is myfield1
  field2 is myfield2
  field3 is mysubfield31 mysubfield32
  field4 is myfield4
  subfield3 is mysubfield31 mysubfield32
  subfield3 is
  </code></pre>
  
  <p>why i can't obtain simply:</p>
  
  <pre><code>subfield3 is mysubfield31 
  subfield3 is mysubfield32
  </code></pre>
  
  <p>where is the ";" used as delimeter in the second for ?</p>