2023年12月31日发(作者:)

让知识带有温度。

2023年教你如何清理历史记录的代码整理

教你如何清理历史记录的代码

复制代码 代码如下:

@echo off

title: IE temporary file r

echo 正在 清除Internet临时文件 ............

,ClearMyTracksByProcess 8

echo 清除Cookies

,ClearMyTracksByProcess 2

echo 清除历史记录

,ClearMyTracksByProcess 1

echo 清除表单数据

,ClearMyTracksByProcess 16

echo 清除密码

,ClearMyTracksByProcess 32

echo 清除上述全部项目

第 1 页/共 8

千里之行,始于足下。

,ClearMyTracksByProcess 255

echo 清除上述全部项目,以及IE7中使用的加载项所保存的各种数据

,ClearMyTracksByProcess 4351

msg * your useless files have been

pause

批处理怎样清理XP系统的使用痕迹能?

xp系统下,能否用 批处理 实现清理使用痕迹的功能?

IE使用痕迹 系统使用痕迹 软件使用痕迹等等。

网上搜寻了几个,感觉都不太好用。

不想用软件清理,只想运行一下bat文件,就自动清理完了。

有没有bat批处理,实现 清理天使.rar 这个软件里面的清理痕迹功能?

ygqiang 中尉 Rank: 5Rank: 5 帖子356 积分803 技术1 捐助0

注册时间2023-4-18 2楼

发表于 2023-4-8 14:03 | 只看该

其实我主要是想清理下上网痕迹

第 2

页 /共 8

让知识带有温度。

网上下载的bat文件,不行

这个软件,清理的比较彻底 !

复制代码 代码如下:

@echo off

mode con cols=50 lines=15

echo 10秒后即将进行清理,请先关闭扫瞄器

ping -n 10 127.1nul 2nul

cls

echo 清理中,请稍后。。。

del /f /s /q %temp%*.* nul 2nul

del /f /s /q %userprofile%locals~1tempor~1*.* nul 2nul

del /f /s /q %systemdirve%recycled*.* nul 2nul

del /f /s /q %userprofile%recent*.* nul 2nul

del /f /s /q %userprofile%cookies*.* nul 2nul

del /f /s /q %userprofile%locals~1history*.* nul 2nul

第 3 页/共 8

千里之行,始于足下。

echo y | reg

HKEY_CURRENT_USERSOFTWAREMicrosoftInternet

ExplorerTypedURLS nul 2nul

echo y | reg

HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersioninternet settings5.0cacheextensible cache nul 2nul

cls

echo 清理完毕,按任意键退出

pausenul

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

复制代码 代码如下:

@echo off

color 0a

mode con cols=100 lines=350

echo %date% %time%

set time1=%time::=%

set file=%time1:~,8%

echo 即将进行清理,请先关闭扫瞄器

第 4

页 /共 8

让知识带有温度。

set /p=cls%file%.log 2clsErr%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 2clsErr%file%.log

del /f /s /q %userprofile%locals~1tempor~1*.* cls%file%.log

2clsErr%file%.log

del /f /s /q %systemdirve%recycled*.* cls%file%.log

2clsErr%file%.log

del /f /s /q %userprofile%recent*.* cls%file%.log 2clsErr%file%.log

del /f /s /q %userprofile%cookies*.* cls%file%.log

2clsErr%file%.log

del /f /s /q %userprofile%locals~1history*.* cls%file%.log

2clsErr%file%.log

echo ------------------------------------开头清理:注册表信息cls%file%.log

第 5 页/共 8

千里之行,始于足下。

echo y | reg

HKEY_CURRENT_USERSOFTWAREMicrosoftInternet

ExplorerTypedURLS cls%file%.log 2clsErr%file%.log

echo y | reg

HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersioninternet settings5.0cacheextensible cache cls%file%.log

2clsErr%file%.log

echo 清理完毕,按任意键退出

:end

pause

找了2个文件,

但能否将这2个文件,做到1个bat批处理文件 或者 reg文件 里面呢?

1、彻底屏蔽历史记录.ini

文件内容是:

复制代码 代码如下:

HKEY_CURRENT_USERSoftwareMicrosoftInternet

ExplorerTypedURLs

HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain

第 6

页 /共 8

让知识带有温度。

Save_Session_History_On_Exit=yes

HKEY_CURRENT_USERSoftwareMicrosoftInternet

ExplorerTypedURLs [8]

2、彻底屏蔽历史记录.bat

文件内容是:

复制代码 代码如下:

reg add

HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell

Folders /f /v History /t REG_EXPAND_SZ

/d %%USERPROFILE%%Local SettingsHistory//

regini 彻底屏蔽历史记录.ini

用1个bat批处理解决。

复制代码 代码如下:

;删除上网记录

reg add

HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell

Folders /f /v History /t REG_EXPAND_SZ

/d %%USERPROFILE%%Local SettingsHistory//

reg add HKEY_CURRENT_USERSoftwareMicrosoftInternet

ExplorerTypedURLs

第 7 页/共 8

千里之行,始于足下。

reg add HKEY_CURRENT_USERSoftwareMicrosoftInternet

ExplorerMain /f /v Save_Session_History_On_Exit /t REG_SZ /d yes

echo HKEY_CURRENT_USERSoftwareMicrosoftInternet

ExplorerTypedURL [8]

regini

If %ERRORLEVEL%==0 del

以上这个,可以屏蔽ie扫瞄器的“历史记录”

但如何清除ie地址栏的历史网站记录呢?

文档内容到此结束,欢迎大家下载、修改、丰富并分享给更多有需要的人。

第 8

页 /共 8