- using System.IO;
- public static void Main()
- {
- ClearFolder(new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache))); // Execute ClearFolder() on the IE's cache folder
- }
- void ClearFolder(DirectoryInfo diPath)
- {
- foreach (FileInfo fiCurrFile in diPath.GetFiles())
- {
- fiCurrFile.Delete();
- }
- foreach (DirectoryInfo diSubFolder in diPath.GetDirectories())
- {
- ClearFolder(diSubFolder); // Call recursively for all subfolders
- }
- }
Saturday, October 18, 2008
Delete All Temporary Internet Files Of Internet Explorer
Subscribe to:
Post Comments (Atom)
1 comment:
hi,
i am using these code to delte the temporay files, its working fine in my local system, but when i am using these code in my website, its not working.
This is my concept, i am using a flash which will display the Client Address(from XML file), if i update the data's in xml file using c#.net coding the updated address is not showing in the flash instead of the new addresss it will show the old data(xml is stored in temp folder), but its is working in Firefox not in IE6.pls provide any solution for this issues
Post a Comment