title: Batch file for listing all files from a date interval
body: <p>I need to do a batch file which order all files by a date interval, example:</p>
  
  <pre><code>@echo off
  echo Input the date(dd/mm/yyyy):
  set /p compDate=
  
  ::After that I will compare from the actual day (%date%), example:
  
  set interval = %compDate% - %date%... *Something like that*
  
  ::After that I need to list all files from a specific directory, example:
  
  echo Input the directory:
  set /p directory=
  SET Exit= %UserProfile%\Desktop\test.txt
  
  ::After that I might need dir /tc to get the creation date, example:
  
  pushd "%directory%"
  dir /s /tc /a-d &gt; %Exit%
  
  ::After that I don't know how to get only the lines which are in date interval, example:
  </code></pre>
  
  <p>Today is 19/08/2014, but I want to search all files created from day 10/07/2014.
  So I have to copy all lines which have the date 10/07/2014, 11/07/2014, 12/07/2014 and so on until stop on today created files.</p>
  
  <p>I tried with <code>findstr</code>, but I can't set the date interval, just a specific date to search in the .txt created.</p>
  
  <p>Somebody know how to do that?</p>