清除IE临时文件的Batch脚本

@echo off
title: IE temporary file deleter
echo 正在 清除Internet临时文件 ............   RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8   echo 清除Cookies   RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2   echo 清除历史记录   RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1   echo 清除表单数据   RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16   echo 清除密码   RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32   echo 清除上述全部项目   RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255   echo 清除上述全部项目,以及IE7中使用的加载项所保存的各种数据   RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351 msg * your useless files have been crashed,master........
pause

出处:http://www.bathome.net/thread-5171-1-1.html

===========================================================================

批处理怎样清理XP系统的使用痕迹能?
xp系统下,能否用   批处理    实现清理使用痕迹的功能?
IE使用痕迹  系统使用痕迹  软件使用痕迹等等。
网上搜索了几个,感觉都不太好用。
不想用软件清理,只想运行一下bat文件,就自动清理完了。
有没有bat批处理,实现 清理天使.rar  这个软件里面的清理痕迹功能?

ygqiang 中尉 Rank: 5Rank: 5 帖子356 积分803 技术1  捐助0  注册时间2010-4-18 2楼
 发表于 2011-4-8 14:03 | 只看该作者
其实我主要是想清理下上网痕迹
网上下载的bat文件,不行
这个软件,清理的比较彻底 !

kyo2605757 列兵 Rank: 1 帖子10 积分16 技术2  捐助0  注册时间2010-9-7 3楼
 发表于 2011-4-9 09:49 | 只看该作者

@echo off
mode con cols=50 lines=15
echo 10秒后即将进行清理,请先关闭浏览器
ping -n 10 127.1>nul 2>nul
cls
echo 清理中,请稍后。。。
del /f /s /q %temp%\*.* >nul 2>nul
del /f /s /q "%userprofile%\locals~1\tempor~1\*.*" >nul 2>nul
del /f /s /q "%systemdirve%\recycled\*.*" >nul 2>nul
del /f /s /q "%userprofile%\recent\*.*" >nul 2>nul
del /f /s /q "%userprofile%\cookies\*.*" >nul 2>nul
del /f /s /q "%userprofile%\locals~1\history\*.*" >nul 2>nul
echo y | reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\TypedURLS" >nul 2>nul
echo y | reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\internet settings\5.0\cache\extensible cache" >nul 2>nul
cls
echo 清理完毕,按任意键退出
pause>nul

下面的的代码是经过优化,可以记录清理日志信息等

@echo off
color 0a
mode con cols=100 lines=350
echo %date% %time%
set time1=%time::=%
set file=%time1:~,8%
echo 即将进行清理,请先关闭浏览器
set /p=<nul 1>cls%file%.log 2>clsErr%file%.log
set /p a=你确定继续清理吗?(Y/N)
if /i not "%a%"=="y" goto :end echo 清理中,请稍后。。。
echo ------------------------------------开始清理:%temp%\*.*>>cls%file%.log
del /f /s /q %temp%\*.* >>cls%file%.log 2>>clsErr%file%.log
del /f /s /q "%userprofile%\locals~1\tempor~1\*.*" >>cls%file%.log 2>>clsErr%file%.log
del /f /s /q "%systemdirve%\recycled\*.*" >>cls%file%.log 2>>clsErr%file%.log
del /f /s /q "%userprofile%\recent\*.*" >>cls%file%.log 2>>clsErr%file%.log
del /f /s /q "%userprofile%\cookies\*.*" >>cls%file%.log 2>>clsErr%file%.log
del /f /s /q "%userprofile%\locals~1\history\*.*" >>cls%file%.log 2>>clsErr%file%.log
echo ------------------------------------开始清理:注册表信息>>cls%file%.log
echo y | reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\TypedURLS" >>cls%file%.log 2>>clsErr%file%.log
echo y | reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\internet settings\5.0\cache\extensible cache" >>cls%file%.log 2>>clsErr%file%.log
echo 清理完毕,按任意键退出 :end
pause

----------------------------------------------------------------------------------------------
ygqiang 中尉 Rank: 5Rank: 5 帖子356 积分803 技术1  捐助0  注册时间2010-4-18 4楼
 发表于 2011-4-11 08:14 | 只看该作者
本帖最后由 ygqiang 于 2011-4-11 08:16 编辑

多谢楼上。
找了2个文件,
但能否将这2个文件,做到1个bat批处理文件 或者 reg文件 里面呢?

1、彻底屏蔽历史记录.ini
文件内容是:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
"Save_Session_History_On_Exit"="yes"
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs []

2、彻底屏蔽历史记录.bat
文件内容是:

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "History" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Local Settings\History//\"
regini 彻底屏蔽历史记录.ini

----------------------------------------------------------------------------------------------
ygqiang 中尉 Rank: 5Rank: 5 帖子356 积分803 技术1  捐助0  注册时间2010-4-18 5楼
 发表于 2011-4-12 11:20 | 只看该作者
用1个bat批处理解决。

;删除上网记录
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "History" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Local Settings\History//\"
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs"
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /f /v "Save_Session_History_On_Exit" /t REG_SZ /d "yes"
echo HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURL [8]>tmp.ini
regini tmp.ini
If "%ERRORLEVEL%"=="0" del tmp.ini

----------------------------------------------------------------------------------------------
ygqiang 中尉 Rank: 5Rank: 5 帖子356 积分803 技术1  捐助0  注册时间2010-4-18 6楼
 发表于 2011-4-22 10:07 | 只看该作者
以上这个,可以屏蔽ie浏览器的“历史记录”
但如何清除ie地址栏的历史网站记录呢?

出处:http://www.bathome.net/thread-11808-1-1.html

清理IE和使用历史痕迹的更多相关文章

  1. 永久清理git中的历史大文件

    原文发布于:https://www.chenxublog.com/2019/05/26/remove-git-big-files.html 有写老的git仓库,因为当年的无知,不会用.gitignor ...

  2. 著名清理软件(CCleaner) 5.24.5841 中文版

    软件名称: 著名清理软件(CCleaner) 软件语言: 多国语言 授权方式: 免费软件 运行环境: Win 32位/64位 软件大小: 5.7MB 图片预览: 软件简介: CCleaner的体积小, ...

  3. CCleaner(著名清理软件) 5.21.5700 中文免费版(著名清理软件) 5.21.5700 中文免费版

    软件名称: CCleaner(著名清理软件) 5.21.5700 中文免费版著名清理软件(CCleaner)软件语言: 多国语言授权方式: 免费软件运行环境: Win 32位/64位软件大小: 5.6 ...

  4. docker 手动清理私有仓库的方法

    1.关于删除私有仓库的镜像,官网说明如下: 官网上注明可以通过name和digest删除image.name我们是知道的.我们只要获取digest就可以了! 查看所有镜像: 查看指定镜像: 2.reg ...

  5. 系统垃圾清理利器CCleaner v5.30.6063绿色单文件版(增强版)

    系统垃圾清理利器CCleaner现已更新至v5.30.6063,此次更新为Edge.IE浏览器提供了更好的清理功能,更新了Windows Explorer MRU清理功能,同时改善了应用程序中的SSD ...

  6. Git清空历史,清空历史删除的文件,降低.git 文件大小

    执行以下步骤之前 请做好源码备份 本操作用来清理github上面的历史删除文件,减少库的体积. 第一步骤 下载JDK环境和JAR包 https://rtyley.github.io/bfg-repo- ...

  7. 如何清理history

    工作中,需要清理history 清理当前会话历史命令    history -c 清理当前用户所有历史命令     echo > .bash_history     #在用户主目录执行此操作

  8. android-配置文件AndroidManifest.xml

    AndroidManifest.xml 是每个android程序中必须的文件.它位于整个项目的根目录,描述了package中暴露的组件(activities, services, 等等),他们各自的实 ...

  9. AndroidManifest.xml详解(上)

    本文编辑整理自:http://blog.163.com/hero_213/blog/static/39891214201242835410742/ 一.关于AndroidManifest.xml    ...

随机推荐

  1. Population Size CodeForces - 416D (贪心,模拟)

    大意: 给定$n$元素序列$a$, 求将$a$划分为连续的等差数列, 且划分数尽量小. $a$中的$-1$表示可以替换为任意正整数, 等差数列中必须也都是正整数. 贪心策略就是从前到后尽量添进一个等差 ...

  2. ccf交通规划

    一.试题 问题描述  G国国王来中国参观后,被中国的高速铁路深深的震撼,决定为自己的国家也建设一个高速铁路系统.  建设高速铁路投入非常大,为了节约建设成本,G国国王决定不新建铁路,而是将已有的铁路改 ...

  3. Leetcode 105

    /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode ...

  4. 46. 47. Permutations

    求全排列. 1. 无重复元素 Given a collection of distinct numbers, return all possible permutations. For example ...

  5. http1.0 1.1 2.0区别

    http1.0 1.1 2.0区别 转载:https://blog.csdn.net/linsongbin1/article/details/54980801/ 1.HTTP1.0 1.1区别 (1) ...

  6. HashMap相关(二)

    基于哈希表的 Map 接口的实现.此实现提供所有可选的映射操作,并允许使用 null 值和 null 键.(除了不同步和允许使用 null 之外, HashMap 类与 Hashtable 大致相同. ...

  7. Cxfreeze使用存在问题

    Cxfreeze使用 cx_Freeze-5.1.1-cp36-cp36m-win_amd64.wh 1● 打包多个文件 Cxfreeze D:/test.py –target-dir D:/   c ...

  8. 微信小程序wx.chooseImage和wx.previewImage的综合使用(图片上传不限制最多张数)

    WXML: <view class="weui"> <view class="weui-uploader"> <view clas ...

  9. linux make virtual memory more efficient three components

    Page Cache This is used to speed up access to images and data on disk. As pages are read into memory ...

  10. 通过url获取参数信息

    运行结果如下: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <ti ...