Hi,
I'm trying to delete files from the browser's cache by doing this:
DirectoryInfo di = new
DirectoryInfo(E nvironment.GetF olderPath(Envir onment.SpecialF older.InternetC ache));
foreach (FileInfo fi in di.GetFiles())
{
fi.Delete();
}
The strange thing is that it only delete 2 files! It's doesn't "see" the
rest of the files.
Any idea?
Thanks in advance.
I'm trying to delete files from the browser's cache by doing this:
DirectoryInfo di = new
DirectoryInfo(E nvironment.GetF olderPath(Envir onment.SpecialF older.InternetC ache));
foreach (FileInfo fi in di.GetFiles())
{
fi.Delete();
}
The strange thing is that it only delete 2 files! It's doesn't "see" the
rest of the files.
Any idea?
Thanks in advance.
Comment