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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -