title: Forfiles with log
body: <p>I'm trying to use bat file as a command for deleting files older than 10 days in a folder. The code is like this: </p>
  
  <pre><code>forfiles -p "E:\folder" -m *.* /D -10 /C "cmd /c del @path" 
  </code></pre>
  
  <p>However, I'm not able to figure out how to get a log file populated everytime it's run. 
  I've tried this below, that works with robocopy, however doesn't work with forfiles. </p>
  
  <pre><code>forfiles -p "E:\folder" -m *.* /D -10 /C "cmd /c del @path" /LOG+:E:\folder\log.txt
  </code></pre>
  
  <p>Would you know how shall I write this code so I have a log file populated with information of deletion? </p>
  
  <p>Thanks</p>