windows - forfile - Delete files older than x days -
OS: Windows Server 2008 R2
I have a small batch-file that will remove all Old backups from x days in a specific folder should
Command:
forfiles / P "C: \ Lehreroffice Backup Batch Backup \" / S / M *. * / D-31 / C "CMD / C del @ path" Error:
Invalid argument / option - '@ Pat' Does anyone know what I am doing?
Remove the backslash ending in / p logic
Comments
Post a Comment