title: Download only today's files from FTP server using Windows batch file
body: <p>I am trying to copy XML files from an FTP location to an application server - but not all files. New files are archived after every half an hour in the ftp location. I need to transfer only the new files based on the timestamp and date.</p>
  
  <p>I am currently using the below 2 files to copy all the files from FTP location.</p>
  
  <p><strong><em>Batch file:</em></strong></p>
  
  <pre><code>ftp -i -s:D:\ftp_commands.txt -n &lt;host name&gt;
  </code></pre>
  
  <p><strong><em>Text file (ftp_commands.txt):</em></strong></p>
  
  <pre><code>user &lt;username&gt; &lt;password&gt;
  cd &lt;source path&gt;
  lcd &lt;destination path&gt;
  mget *
  bye
  </code></pre>
  
  <p>Can anyone please help me copy files based on timestamp or date?</p>