title: Delete files older than x days in multiple folders
body: <p>I have a folder structure that is something like this:</p>
  <pre class="lang-none prettyprint-override"><code>C:\XYZ\
  |---A\
  |-----Archive
  |---B\
  |-----Archive
  |---C\
  |-----Archive
  </code></pre>
  <p>There are a total of about 150 folders.  I run the command below to see what files are in the folders:</p>
  <pre><code>for /R C:\XYZ\ %i IN (&quot;archive\*.*&quot;) do echo %i
  </code></pre>
  <p>I want to modify this command to delete all files in the archive folders older that a number of days. I tried the <code>/d -20</code> somewhere in the command line to try and get the files just listed, but nothing seems to work.</p>