I would like to know (using C#) how I can delete files in a certain directory older than 3 months, but I guess the date period could be flexible.
Just to be clear:
you just need FileInfo -> CreationTime
and than just calculate the time difference.
in the app.config you can save the TimeSpan value of how old the file must be to be deleted
also check out the DateTime Subtract method.
good luck