Can anyone tell me why this wont work? I got the right folder path but it will not remove the files in that folder.
Code:DirectoryInfo di = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache)); foreach (FileInfo fl in di.GetFiles()) { fl.Delete(); }




Reply With Quote