C# .NET - Delete old files - Asked By Anandh Ramanujam on 10-Jan-11 05:59 AM

Hi,

I want to delete files which are 48 hours older than current date.

Can anybody help me in this regard.

Thanks.
Kishore Sahas replied to Anandh Ramanujam on 10-Jan-11 07:02 AM
Put the Code in 2 hour Poling . 

x = Diffrences between Current Date an File Date 

If x >48 hrs then 

File.Delete();