title: Setting a windows batch file variable to the day of the week
body: <p>I have a windows batch file that runs daily. Wish to log data into a file and want to rotate it (i.e. having at most the last 7 days worth of data).</p>
  
  <p>Looked into the commands <code>DATE</code> and <code>DELIMS</code> - Cannot figure out a solution.</p>
  
  <p>Is there a simple solution to create a file name that contains the day of the week i.e. 0 for monday etc.</p>
  
  <p>Or do I have to resort to some better shell script.</p>