清除缓存并自动打开IE的脚本(win7)

在进行网站开发时,如果网站采用了大量的js脚本,有时会因为IE缓存没有清空而影响程序的调试。下面的脚本代码也许可以帮得上你的忙!

 

 

@echo off
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255 (Deletes ALL History)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1 (Deletes History Only)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2 (Deletes Cookies Only)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 (Deletes Temporary Internet Files Only)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16 (Deletes Form Data Only)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32 (Deletes Password History Only)

"C:/Program Files/Internet Explorer/iexplore.exe"

 

 

用记事本编辑好了,另存为.cmd文件。注意扩展名一定要是.cmd。

 

小技巧,在记事本另存时给文件名前后加上双引号(“)。

posted @ 2010-09-15 11:34  陕北蜂农  阅读(226)  评论(0编辑  收藏  举报