title: Windows XP Batch- IF EXIST FTP with Date Variable
body: <p>I am writing a quick batch to see if a file exists after executing an exe.</p>
  
  <p>The file is created with a YYYYmmDDnumbernumbernumber.xml file name according to the current date.</p>
  
  <p>How do I check for the file with a variable in the beginning? Here is what I have so far:</p>
  
  <pre><code>@echo off
  
  set mydate=%date:~10,4%%date:~4,2%%date:~7,2%
  
  if not exist "ftp://FTPsite/%mydate%*.xml" (echo nah) else (echo yea)
  
  pause
  </code></pre>