05-02-2012، 12:57 PM
با سورس زیر میتونید تمپ فایل اینترنت اکسپلور رو پاک کنید .
english :
We can delete the temporary files of IE. Following are the code part of delete the files.
code :
english :
We can delete the temporary files of IE. Following are the code part of delete the files.
code :
کد:
using System.IO;
public static void Main()
{
ClearIETemp(new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache)));
}
void ClearIETemp(DirectoryInfo MyDirPath)
{
foreach (FileInfo MyFile in MyDirPath.GetFiles())
{
MyFile.Delete();
}
foreach (DirectoryInfo MySubFolder in MyDirPath.GetDirectories())
{
ClearIETemp(MySubFolder);
}
}