• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell
您的位置:首页 > 脚本语言 >DOS/BAT > 清理IE和使用历史记录的bat代码

清理IE和使用历史记录的bat代码

作者:mdxy-dxy 字体:[增加 减小] 来源:互联网

mdxy-dxy 通过本文主要向大家介绍了ie.bat,ie自动设置 bat,ie小助手 bat,修复ie.bat,ie主页修复bat等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com

@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
</div>

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


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

@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
</div>

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

@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
</div>

找了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 [8]
</div>

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
</div>

用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
</div>

以上这个,可以屏蔽ie浏览器的“历史记录”
但如何清除ie地址栏的历史网站记录呢?

</div>

您可能想查找下面的文章:

  • 清理IE和使用历史记录的bat代码

相关文章

  • 用批处理修改host文件的代码
  • 用批处理实现映射盘网络盘为固定盘符,请更改冲突的硬盘盘符
  • ren 命令在使用通配符时需要注意的地方
  • 内存虚拟盘软件XMSDSK的使用教程
  • 批处理备份文件夹和文件后发布文件夹至网站
  • 一个小助手批处理实例代码
  • 自动克隆guest为administrators组的批处理
  • 生成0-99之间的随机数列
  • MS-DOS版本的历史介绍
  • cmd rd命令 删除文件夹

文章分类

  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell

最近更新的内容

    • BAT批处理实现软件的自动安装(以搜狗拼音为例)
    • 我装了IIS了,可是又进不去http://localhost 了
    • set /p= 命令使用详解
    • Windows下写一个文件备份脚本(专用备份的)
    • 注册表危险组件删除功能批处理
    • Windows 文件类型与打开方式定义方法
    • 一个命令行(批处理)延迟执行命令的语法
    • Setver、Share、Subst命令的使用方法
    • 把首行和尾行互换的批处理
    • 利用mshta调用运行js或vbs的

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有