I am programing to have a file deleted in X- amount of days:
for (int i = 0; i < 5; i++)
{
System.IO.DirectoryInfo fi = new DirectoryInfo(m_strfilename[i].Text);
if (fi.LastAccessTime < DateTime.Now.AddDays(-Convert.ToInt32(m_dropdown[i].Value)))
fi.Delete();
I am not quite sure what the issue is with this.