title: How to apply for loop for comma separated arguments passed to the script in batch?
body: <p>I have a list of folders listed below:</p>
  
  <ul>
  <li>C:\Program Files</li>
  <li>C:\temp</li>
  <li>C:\John Snow</li>
  </ul>
  
  <p>I have to pass comma separated arguments to scripts like given below:</p>
  
  <pre><code>script.bat C:\Program Files,C:\temp,C:\John Snow
  </code></pre>
  
  <p>After passing to the script I need to filter out comma separated argument and apply for each loop and echo the argument value and execute dir command to list files in that director</p>