title: Batch forfiles error path not found
body: <p>I'm a bit of a newbie with batch files, but am looking for a script to delete .txt log files that are older than 30 days...  (FWIW, I am on XP SP3...)</p>
  
  <p>I tried to follow the example found <a href="https://stackoverflow.com/questions/51054/batch-file-to-delete-files-older-than-n-days">here</a>, (including downloading the <code>forfiles.exe</code> from <a href="ftp://ftp.microsoft.com/ResKit/y2kfix/x86/" rel="nofollow noreferrer">here</a>) and ended up with this:</p>
  
  <pre><code>forfiles -p"D:\SQL Database Back Ups\Update_FmlaManagement_Log" -s -m *.txt -d-30 -c "cmd /c del @FILE"
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code>Error path not found (3rd argument) line 545
  </code></pre>
  
  <p>I did a lot of googling, but can't seem to figure out what this error is talking about.  <a href="https://stackoverflow.com/questions/1039221/forfiles-batch-script-escaping-character">Somebody</a> suggested using <code>forfiles.exe</code> in order to get the <code>@variables</code> to work, but I tried that (along with the full forfiles path), and nothing seems to be working...</p>
  
  <p>Can someone at least point me in the correct direction as to what this error message is telling me?</p>