Windows 11 bat file to remove files older than X days old

  • Thread starter Thread starter Leno#
  • Start date Start date
L

Leno#

Would you be able to tell me why I am not able to make this work. Trying to create a bat file (Windows 11) to delete files older than 14 day from this directoryThe error message is below. errorC:\Users\leno0\Desktop>Forfiles -p "C:\Work Data\Len's Files\Data\Quicken\BACKUP\" -s -m *.QDF-backup /D "-14" /C "cmd /c del /q @path"ERROR: Invalid argument/option - '/q'.Type "FORFILES /?" for usage. LenO Be Safe Stay Healthy

Continue reading...
 
Back
Top