title: Batch file that deletes folders of users in C:\users that are more than 210 days
body: <p>I am trying to write a batch file that removes/deletes different user(s) folders in C:\users that are older than 210 days. </p>
  
  <p>I tried this
  forfiles /p C:\users /d -210 /c "cmd /c del @file"</p>
  
  <p>However this command deletes the shortcut of the current user as well as those shortcuts are older than 210 days.</p>
  
  <p>Can I get the batch file to only remove the entire folder if the last modified date of the content is older 210 days</p>
  
  <p>Also can I specify the starting name of the folder to be deleted(the users starts with PDC), as I fear it may delete some of the important hidden document of a computer, as this batch file will be run on an administrator account.</p>
  
  <p>Any help is appreciated thanks</p>