- 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
- }
- }
Showing posts with label Delete All Temporary Internet Files Of IE. Show all posts
Showing posts with label Delete All Temporary Internet Files Of IE. Show all posts
Saturday, October 18, 2008
Delete All Temporary Internet Files Of Internet Explorer
Subscribe to:
Posts (Atom)
