I'm looking for a function in batch that recursive delets all files/folders older than X Days from a given path.
Is there a Fast and easy snippet that could be placed in a batch function?
feedback
|
|
If your command interpreter is JP Software's TCC/LE, simply use date ranges and the del /[d-30,%@makedate[0]] /s/x *The * is a wildcard, of course, and can include a pathname.
Further reading
| |||
|
feedback
|