No, I don't think there's any simpler way of writing this code. I'd put the File.Delete in a try/catch and consider checking if files are read only, but that adds code, it does not subtract it.
wrote:
intDays
Just to add - Hungarian notation went out of fashion as soon as the Hungarian stopped working for Microsoft.