How to delete all files in Temporary Internet Files?

  • Thread starter Thread starter Andy Chen
  • Start date Start date
A

Andy Chen

Hi,

I need to delete all files in Temporary Internet Files, this folder is a
virtual folder and can not be accessed like normal folder. How can I get it
done? Any ideas?

Thanks very much!
Andy
 
string path =
Environment.GetFolderPath(Environment.SpecialFolder.InternetCache);
string[] items = Directory.GetDirectories(path);

also see Environment.GetFolderPath(Environment.SpecialFolder.History)

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top