▼ กำลังโหลดข้อมูล... ▼
แสดงความคิดเห็น
คุณสามารถแสดงความคิดเห็นกับกระทู้นี้ได้ด้วยการเข้าสู่ระบบ
กระทู้ที่คุณอาจสนใจ
อ่านกระทู้อื่นที่พูดคุยเกี่ยวกับ
การพัฒนาซอฟต์แวร์
list Files ใน Temporary Internet Files
แต่ปรากฏว่าได้มาแค่ Desktop.ini ครับ
code เป็น C#.net ครับ
string pathTemp = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache);
System.IO.DirectoryInfo di = new DirectoryInfo(pathTemp);
foreach (string f in Directory.GetFiles(pathTemp))
{
File.SetAttributes(f, FileAttributes.Normal);
if (f.Length == 18)
{
File.Delete(f);
}
}