I'm looking for a very simple batch file that will delete files in a folder.
here's some requirements.
1. to be able to specify how many days I want to keep files in the directory (newest files of course by modify date)
2. the batch file should not delete itself after the x days has been reached (only to delete the files specified)
3. to be able to specify whether it deletes everything in the specified directory, or by specifying, for example, *.bak, *.xml, etc..
4. Can it have the ability to check for subfolders and delete files there as well?