title: Windows Batch Scripting: Parse CSV file and extract data
body: <p>I am new to windows batch scripting so pardon my ignorance. I have a CSV file that looks like this:</p>
  
  <pre><code>ColumnA,ColumnB,ColumnC
  01/02/2015,ABC,111
  01/03/2015,DEF,222
  01/03/2015,HHH,333
  01/05/2015,XYZ,767
  </code></pre>
  
  <p>The number of rows in this file will vary but the columns will remain the same. I need to extract the date column A, row 1 and date from column A, last row. </p>
  
  <p>In this case I need to extract 01/02/2015 and 01/05/2015. Next I want to store both these dates in separate variable.</p>
  
  <p>How can I achieve this? I have no idea where to begin. The only thing I have is this:</p>
  
  <pre><code>for /F "tokens=1 delims=," %%s in (IntFlow.csv) do @echo %%s
  </code></pre>
  
  <p>This one line of code cuts the first column and echo's it. I don't know what do next. Please advice. </p>