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?
If your command interpreter is JP Software's TCC/LE, simply use date ranges and the del command. Here's how to delete files (and consequent empty directories) older than 30 days:
del /[d-30,%@makedate] /s/x *
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago