title: get last month first date and last date in batch file
body: <p>I am creating a batch file to execute some exe file. In that exe i need to specify first date(mm/dd/yyyy) and last day(mm/dd/yyyy) of last month.</p>
  
  <pre><code>@echo off
  start "Testing" "c:\Program Files\app-cmd\bin\admincmd\imagelist -d 08/01/2015 -e 01/09/2015 &gt; c:\test.txt" 
  </code></pre>
  
  <p><strong>Imagelist</strong> is an exe file where I need to pass value in <strong>-d</strong> and <strong>-e</strong> parameter.
  I will add this script in schedule task so, it will run as schedule.</p>
  
  <p>I can't use powershell as machine is win server 2003.</p>
  
  <p>Please advise.</p>