471,618 Members | 1,157 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

How to delete all files in Temporary Internet Files?

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
Feb 9 '06 #1
1 2816
string path =
Environment.GetFolderPath(Environment.SpecialFolde r.InternetCache);
string[] items = Directory.GetDirectories(path);

also see Environment.GetFolderPath(Environment.SpecialFolde r.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


"Andy Chen" wrote:
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

Feb 9 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Rajiv Das | last post: by
6 posts views Thread by Neo The One | last post: by
1 post views Thread by Manish | last post: by
1 post views Thread by XIAOLAOHU | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.