清空IE缓存-也就是清除掉IE临时文件夹
来源:互联网 发布:淘宝简单装修 编辑:程序博客网 时间:2024/05/01 23:24
引用WinINet单元
procedureTForm1.DeleteIECache;//清理IE缓存
var
lpEntryInfo:PInternetCacheEntryInfo;
hCacheDir:LongWord;
dwEntrySize:LongWord;
cachefile:string;
i:integer;
cancheqqlist:TStringList;
begin
cancheqqlist:=TStringList.Create;
cancheqqlist.Clear;
dwEntrySize:=0;
FindFirstUrlCacheEntry(nil,TInternetCacheEntryInfo(nil^),dwEntrySize);
GetMem(lpEntryInfo,dwEntrySize);
ifdwEntrySize>0then
lpEntryInfo^.dwStructSize:=dwEntrySize;
hCacheDir:=FindFirstUrlCacheEntry(nil,lpEntryInfo^,dwEntrySize);
ifhCacheDir<>0then
begin
repeat
if(lpEntryInfo^.CacheEntryType)and(NORMAL_CACHE_ENTRY)=NORMAL_CACHE_ENTRYthen
cachefile:=pchar(lpEntryInfo^.lpszSourceUrlName);
cancheqqlist.Add(cachefile);
fori:=0tocancheqqlist.Count-1do
DeleteUrlCacheEntry(pchar(cancheqqlist.Strings[i]));//执行删除
FreeMem(lpEntryInfo,dwEntrySize);
dwEntrySize:=0;
FindNextUrlCacheEntry(hCacheDir,TInternetCacheEntryInfo(nil^),dwEntrySize);
GetMem(lpEntryInfo,dwEntrySize);
ifdwEntrySize>0then
lpEntryInfo^.dwStructSize:=dwEntrySize;
untilnotFindNextUrlCacheEntry(hCacheDir,lpEntryInfo^,dwEntrySize);
end;
FreeMem(lpEntryInfo,dwEntrySize);
FindCloseUrlCache(hCacheDir);
cancheqqlist.Free;
end;
- 清空IE缓存-也就是清除掉IE临时文件夹
- 清空IE CWebBrowser2缓存
- C# 清空IE缓存
- 对付页面缓存 清空IE缓存
- 自动化测试-清空IE缓存方式
- IE后退清空表单
- 关闭IE清空session
- c# winform清空ie缓存的几种方法
- 清空IE中的TextBox的记忆
- 清空internet临时文件夹Temporary Internet Files
- 清空页面缓存
- 清空页面缓存
- jsp清空缓存
- 清空oracle缓存
- 清空数据库缓存
- 清空IIS缓存
- 清空所有缓存
- 清空tomcat缓存
- 保持用户状态Session
- check
- check1
- SQL Server备份与还原
- 函数式编程四大定律
- 清空IE缓存-也就是清除掉IE临时文件夹
- uboot-ping代码学习笔记
- SPI调试笔记
- Myeclipse 7.5下jsf项目的创建
- 添加新元素到现有页面
- 用keil调试TQ2440
- FIFO学习笔记
- SVN与Git的区别
- Spring与JDBC集成