K
Kfir Marouani
Hi,
I'm trying to delete files from the browser's cache by doing this:
DirectoryInfo di = new
DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache));
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(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache));
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.