I want to clear all kml files in Temporary Internet Files. I tried recursive directory search but no kml files are found, although you can see kml files when you browse with windows explorer. In the actual directories of “Temporary Internet Files”,like Content.IE5, there exists *.xml counterparts for these kml files. I also deleted them but windows explorer still shows the kml files.
I also tried some WinApi methods but I couldn’t write the code I want.
I want to clear all kml files in Temporary Internet Files. I tried recursive
Share
As far as I know Temporary Internet Files are handled similar to Recycle Bin files, i.e. there’s an index file with meta data (such as file names) and files containing the actual contents. You might be able to use
GetUrlCacheEntryInfo()to get file informations, but I don’t think there’s any specific/easy way to clear all files excluding a specific sub set (without not damaging the cache files as you do by simply deleting files without updating meta data or iterating over all files in the cache).Edit: I misunderstood you (I think; you just want to delete a specific set of files; not everything else). If you’d like to delete all *.kml files only, you might be able to do it:
FindFirstUrlCacheEntryand `FindNextUrlCacheEntry).DeleteUrlCacheEntryto delete the entries you’ve found.