title: Need to Delete Folder older than 30 days but exclude some
body: <p>Need a favour to delete folders older than 30 days in a given directory, but not folders which is mentioned in text file or user specified (which may be older than 30 days, but we should not delete)</p>
  
  <pre><code>set DIRPATH=%1
  set MAXDAYS=30 
  forfiles -p %DIRPATH% -m *.* -d -%MAXDAYS% -c "cmd /c del /q @path"
  forfiles -p %DIRPATH% -d -%MAXDAYS% -c "cmd /c IF @isdir == TRUE rd /S /Q @path"
  </code></pre>
  
  <p>This code deletes any folders older than 30 days.  I want to exclude some directories.  How do I accomplish that?</p>