title: Delete files older than 6 months with batch file
body: <p>I have to delete tmp files that are older than 6 months. I have this command runing in the batch file which delete files older than 180 days. </p>
  
  <pre><code>forfiles /p "C:\Backup" /s /m *.tmp /c "cmd /c Del @path" /d -180
  </code></pre>
  
  <p>but I want to pass <code>number of month</code> instead of <code>number of days</code>. any idea would be greatly helpful. Thanks in advance</p>