title: Passing array as command line arguments when running exe from batch
body: <p>The goal is to take the following array in a windows .bat file:</p>
  
  <pre><code>set SEARCH_DIR[1]="SomeValue"
  set SEARCH_DIR[2]="AnotherValue"
  set SEARCH_DIR.length=2
  </code></pre>
  
  <p>And to execute for example "someprogram.exe" with the values of SEARCH_DIR passed as individual command line arguments. I would prefer to do this as a loop or something rather than have to manually type out each element in SEARCH_DIR.</p>
  
  <p>I found similar questions but none that answered it example. Thanks in advance. </p>