LIST (not delete!) directories older than X using command line
<p>I need to get a list of directories older than 90 days from 'today's' date using windows command line so I can schedule a batch file to run these folders through a separate process.</p>

<p>I need to list folders and subfolders only, no files.</p>

<p>I have tried using '<code>dir</code>' which produces the list I need:</p>

<pre><code>dir /b /s /a:d /o:gen &gt;C:\file_list.txt
</code></pre>

<p>But, I can't check for dates greater than X using '<code>dir</code>'.</p>

<p>I've looked at using '<code>forfiles</code>' but this won't produce the list as I need it which my dir attempt produces.</p>

<p>To add some more complexity, ideally I need to check the date on the files within a folder rather than the folders date properties.</p>

<p>Any help is greatly appreciated, thanks.</p>