title: Windows batch scripting: compare two files' created dates
body: <p>I would like to fork my Windows batch script based on a comparison of the created dates of two files, and I'm not sure where to begin. I feel like there must be a way. Any ideas?</p>
  
  <p><strong>UPDATE:</strong>
  Tried the solution in PA's answer. I copied the code snippet verbatim to the end of my current script. Then, I added this early in the script:</p>
  
  <pre><code>IF EXIST "%PROGRAMFILES(X86)%" CALL :getCreationDate "%PROGRAMFILES(X86)%\oracle\jinitiator 1.3.1.28\lib\security\certdb.txt"
  </code></pre>
  
  <p>which gives me an error when I execute:
      Invalid alias verb.</p>