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

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -