Use the WinInetAPI. cs and Win32API. cs classes in the WebCacheTool Project
/// <Summary> /// obtain the IE cache file /// </summary> /// <param name = "domain"> domain name </param> private void GetFileByIECache (string domain) {string path = String. empty; try {// get. file ArrayList results = WinInetAPI with the cfg suffix. findUrlCacheEntries ("\\. cfg "); foreach (WinInetAPI. INTERNET_CACHE_ENTRY_INFO entry in results) {// The last access time DateTime accessTime = Convert. toDateTime (Win32API. toStringFromFileTime (entry. lastAccessTime ); If (entry. lpszSourceUrlName = null) continue; if (! Entry. lpszSourceUrlName. contains (domain) {continue;} // entry. lpszSourceUrlName; path = entry. lpszLocalFileName;/** logical processing * // Delete // WinInetAPI. deleteFromUrlCache (localPath) ;}} catch (Exception ex) {TxtLog. insertLog (ex, "BLL NewsPapers getnewmediafile () failed to extract the cached file ");}}