清理COOKIS 上网痕迹

王艳娇 2014-01-23 09:52:25

@echo off
TITLE 清理上网痕迹
color 0b
MODE con: COLS=60 LINES=30
set path=%path%;%windir%\system32
echo 正在检测环境............
echo.
for /f "tokens=3" %%a in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" ^|find /i

"history"') do set _history=%%a
for /f "tokens=3" %%a in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" ^|find /i

"Cookies"') do set _Cookies=%%a
for /f "tokens=3,*" %%a in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" ^|find /i

"Cache"') do (
dir "%%a %%b" >nul&& set _Cache=%%a %%b|| set _Cache=%userprofile%\Local Settings\Temporary Internet Files)

for /f "tokens=3" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Internet Explorer" /v "version"^|find /i "reg_sz"') do set

_IEversion=%%a
call :ver %_IEversion%
echo %_IEversion%|find /i "6.0" >nul &&set _goto=ie6&&goto :ie6
echo %_IEversion%|find /i "7.0" >nul &&set _goto=ie7&&call :ie7
:echo %_IEversion%|find /i "8.0" >nul &&set _goto=ie8

:for /f "tokens=3" %%a in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" ^|find /i

"Cookies"') do echo %%a

for /f "tokens=4 " %%i in ('dir /ah "%_history%\History.IE5\" ^| findstr /i /c:"MSHist"') do set _MSHist=%%i

:********************************************
:********************************************
:echo ::%_history%
:echo ::%_Cookies%
:echo ::%_Cache%
:echo ::%_MSHist%
:echo ::%_IEversion%
:echo ::%_goto%
:********************************************



:ie6

if "%_goto%"=="ie6" TASKKILL /F /t /IM iexplore.exe >nul 2>nul
if "%_goto%"=="ie6" TASKKILL /F /IM explorer.exe >nul

ping 127.1 -n 3 >nul
attrib "%_Cache%\Content.IE5\index.dat" -s -r -h
del "%_Cache%\Content.IE5\index.dat"

attrib "%_history%\History.IE5\index.dat" -s -r -h
del "%_history%\History.IE5\index.dat"
attrib "%_history%\History.IE5\%_MSHist%\index.dat" -s -r -h
del "%_history%\History.IE5\%_MSHist%\index.dat"

attrib "%_Cookies%\index.dat" -s -r -h
del "%_Cookies%\index.dat"

if "%_goto%"=="ie6" start explorer.exe >nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /F >NUL 2>NUL
reg delete "HKCU\Software\Microsoft\Internet Explorer\TypedURLs" /F >NUL 2>NUL

del /f /s /q "%_Cache%\Content.IE5\*.*"
del /f /s /q "%_Cache%\*.*"
del /f /s /q "C:\WINDOWS\Downloaded Program Files"
del /f /s /q "%_history%\*.*"

del "%USERPROFILE%"\Recent\. /f /s /q
rd "%temp%" /s /q

goto end



:**********************************************************************************************
:ie7
:ie8
:ie9
:**********************************************************************************************

::↓清除IE临时文件
start rundll32 InetCpl.cpl,ClearMyTracksByProcess 8

::↓清除Cookies
start rundll32 InetCpl.cpl,ClearMyTracksByProcess 2

::↓清除历史记录
start rundll32 InetCpl.cpl,ClearMyTracksByProcess 1

::↓清除表单数据
:start rundll32 InetCpl.cpl,ClearMyTracksByProcess 16

::↓清除密码
:start rundll32 InetCpl.cpl,ClearMyTracksByProcess 32

::↓清除上述全部项目
:start rundll32 InetCpl.cpl,ClearMyTracksByProcess 255

::↓清除上述全部项目,以及IE7中使用的加载项所保存的各种数据
:start rundll32 InetCpl.cpl,ClearMyTracksByProcess 4351

GOTO :EOF

:**********************************************************************************************
:ver
:**********************************************************************************************
echo 当前Internet Explorer版本为:%1
GOTO :EOF
:**********************************************************************************************
:**********************************************************************************************



pause
:end

请高手解释一下这段批处理代码,还有为什么不能自动跳转到相应的IE版本执行清理。
...全文
89 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
siemens_chang 2014-01-23
  • 打赏
  • 举报
回复
程序媛
软件介绍: 360系统垃圾文件清理工具是从360中提取出来的,不用安装,解压后直接打开360Cleaner.exe即可使用。功能:清理垃圾:定期清理系统中的无用文件,可以释放被占用的磁盘空间,让系统运行更流畅。系系统临时文件、WWindows预读文件、已已下载程序文件WWindows自动更新时留下的补丁、OOffice安装文件WWindows Media Player临时同步文件、FFlash的Cookie文件清清除所有磁盘上指定类型的垃圾文件清理痕迹:很多软件会在使用后留下包含个人信息的使用痕迹,经常清理可以保护您的隐私!一、上网历史痕迹Internet Explorer/腾讯TT浏览器 历史记录Internet Explorer 地址栏网址历史 Internet Explorer CookieFireFox 清理 Opera 清理 Opera 地址栏网址历史谷歌 Chrome 清理 腾讯TT浏览器清理谷歌工具栏搜索记录 搜搜工具条搜索记录百度工具条搜索记录 Windows Live工具条搜索记录二、保存的网页表单和密码Internet Explorer 自动保存的表单(清理时有效)Internet Explorer 自动保存的密码(清理时有效)FireFox 自动保存的表单和搜索历史 FireFox 自动保存的密码Google Chrome 自动保存的表单 Google Chrome 自动保存的密码三、系统历史痕迹和临时文件日志文件 桌面和菜单中无效的快捷方式运行(开始菜单中,重启后生效) 最近运行的程序历史记录文件打开与保存历史记录 窗口位置与大小历史记录查找计算机 最近打开的文件 文件扩展名历史记录最近打开的程序历史记录 通知区域图标历史记录Windows系统日志 清空回收站 内存转储文件Windows搜索历史 网络驱动器映射历史 剪贴板内容四、应用程序历史记录 Windows画图Windows写字板 Windows Defender UltraEdit编辑软件EditPlus编辑软件 Windows媒体播放器RealPlayer/RealOne播放器 暴风影音WPS文字历史记录 WPS表格历史记录 WPS演示历史记录微软 Office 微软 Word 微软 FrontPage 微软 PowerPoint微软 Excel Adobe Flash Player WinZip压缩软件WinRAR压缩软件 MyIE2浏览器 酷狗 傲游(Maxthon)浏览器鲁大师漏洞修复留下的补丁 鲁大师漏洞修复留下的补丁KMPlayer播放器 Windows Live Messenger微软 Office Picture Manager Acrobat Reader阅读器QQ影音 7ZIP(压缩/解压缩工具)历史记录迅雷搜索历史记录 淘宝旺旺登录名信息WinImage打开文件的历史记录 HyperSnap打开与保存文件的历史记录Download Accelerator Plus 历史记录 GetRight 历史记录EmEditor 历史记录 Media Player Classic 历史记录迅雷看看播放器 QQLive 历史记录 SnagIt 历史记录五、注册表冗余动态链接库 无效的软件 无效的安装程序 无效的反安装程序无效的帮助 无效的开始菜单 无效的右键菜单错误的ActiveX信息 错误的文件关联 错误的类信息无效的Windows防火墙设置 无效的MUI缓存 无效的启动项目无效的应用程序路径 无效的字体

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧