清理IE和使用歷史記錄的bat代碼
@echo off
title: IE temporary file deleter
echo 正在 清除Internet臨時(shí)文件 ............
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
echo 清除Cookies
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
echo 清除歷史記錄
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
echo 清除表單數(shù)據(jù)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
echo 清除密碼
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
echo 清除上述全部項(xiàng)目
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
echo 清除上述全部項(xiàng)目,以及IE7中使用的加載項(xiàng)所保存的各種數(shù)據(jù)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
msg * your useless files have been crashed,master........
pause
批處理怎樣清理XP系統(tǒng)的使用痕跡能?
xp系統(tǒng)下,能否用 批處理 實(shí)現(xiàn)清理使用痕跡的功能?
IE使用痕跡 系統(tǒng)使用痕跡 軟件使用痕跡等等。
網(wǎng)上搜索了幾個(gè),感覺(jué)都不太好用。
不想用軟件清理,只想運(yùn)行一下bat文件,就自動(dòng)清理完了。
有沒(méi)有bat批處理,實(shí)現(xiàn) 清理天使.rar 這個(gè)軟件里面的清理痕跡功能?
ygqiang 中尉 Rank: 5Rank: 5 帖子356 積分803 技術(shù)1 捐助0 注冊(cè)時(shí)間2010-4-18 2樓
發(fā)表于 2011-4-8 14:03 | 只看該作者
其實(shí)我主要是想清理下上網(wǎng)痕跡
網(wǎng)上下載的bat文件,不行
這個(gè)軟件,清理的比較徹底 !
@echo off
mode con cols=50 lines=15
echo 10秒后即將進(jìn)行清理,請(qǐng)先關(guān)閉瀏覽器
ping -n 10 127.1>nul 2>nul
cls
echo 清理中,請(qǐng)稍后。。。
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
下面的的代碼是經(jīng)過(guò)優(yōu)化,可以記錄清理日志信息等
@echo off
color 0a
mode con cols=100 lines=350
echo %date% %time%
set time1=%time::=%
set file=%time1:~,8%
echo 即將進(jìn)行清理,請(qǐng)先關(guān)閉瀏覽器
set /p=<nul 1>cls%file%.log 2>clsErr%file%.log
set /p a=你確定繼續(xù)清理嗎?(Y/N)
if /i not "%a%"=="y" goto :end
echo 清理中,請(qǐng)稍后。。。
echo ------------------------------------開(kāi)始清理:%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 ------------------------------------開(kāi)始清理:注冊(cè)表信息>>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
找了2個(gè)文件,
但能否將這2個(gè)文件,做到1個(gè)bat批處理文件 或者 reg文件 里面呢?
1、徹底屏蔽歷史記錄.ini
文件內(nèi)容是:
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]
2、徹底屏蔽歷史記錄.bat
文件內(nèi)容是:
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
用1個(gè)bat批處理解決。
;刪除上網(wǎng)記錄
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
以上這個(gè),可以屏蔽ie瀏覽器的“歷史記錄”
但如何清除ie地址欄的歷史網(wǎng)站記錄呢?
上一篇:批處理BAT實(shí)現(xiàn)正弦曲線和拋物線代碼
欄 目:DOS/BAT
本文標(biāo)題:清理IE和使用歷史記錄的bat代碼
本文地址:http://www.jygsgssxh.com/a1/DOS_BAT/10140.html
您可能感興趣的文章
- 01-10DOS下查看硬盤分區(qū)該使用什么命令
- 01-10使用批處理實(shí)現(xiàn)軟件的自動(dòng)安裝以安裝搜狗拼音為例
- 01-10windows使用批處理發(fā)布web到tomcat并啟動(dòng)tomcat腳本分享
- 01-10win7怎么設(shè)定關(guān)閉顯示器時(shí)間
- 01-10windows常用網(wǎng)絡(luò)命令使用腳本分享
- 01-10Xcopy命令參數(shù)使用介紹
- 01-10XCOPY的高級(jí)使用:指定日期并且用EXCLUDE排除指定文件
- 01-10dos變量定義和引用方法
- 01-10BAT腳本編寫(xiě)教程(比較易懂和全面)
- 01-10自制控制進(jìn)程和控制開(kāi)機(jī)啟動(dòng)項(xiàng)批處理(ntsd強(qiáng)制結(jié)束版)


閱讀排行
- 1C語(yǔ)言 while語(yǔ)句的用法詳解
- 2java 實(shí)現(xiàn)簡(jiǎn)單圣誕樹(shù)的示例代碼(圣誕
- 3利用C語(yǔ)言實(shí)現(xiàn)“百馬百擔(dān)”問(wèn)題方法
- 4C語(yǔ)言中計(jì)算正弦的相關(guān)函數(shù)總結(jié)
- 5c語(yǔ)言計(jì)算三角形面積代碼
- 6什么是 WSH(腳本宿主)的詳細(xì)解釋
- 7C++ 中隨機(jī)函數(shù)random函數(shù)的使用方法
- 8正則表達(dá)式匹配各種特殊字符
- 9C語(yǔ)言十進(jìn)制轉(zhuǎn)二進(jìn)制代碼實(shí)例
- 10C語(yǔ)言查找數(shù)組里數(shù)字重復(fù)次數(shù)的方法
本欄相關(guān)
- 01-10DOS下查看硬盤分區(qū)該使用什么命令
- 01-10使用批處理實(shí)現(xiàn)軟件的自動(dòng)安裝以安
- 01-10后臺(tái)運(yùn)行bat定時(shí)器程序示例分享
- 01-10通過(guò)批處理修改DNS的代碼(推薦)
- 01-10dota2服務(wù)器ping測(cè)試腳本分享
- 01-10再談DOS批處理下格式化日期字符串的
- 01-10windows使用批處理發(fā)布web到tomcat并啟動(dòng)
- 01-10win7怎么設(shè)定關(guān)閉顯示器時(shí)間
- 01-10屏蔽up鍵禁止游戲運(yùn)行腳本分享
- 01-10win7創(chuàng)建wifi熱點(diǎn)腳本分享
隨機(jī)閱讀
- 01-10使用C語(yǔ)言求解撲克牌的順子及n個(gè)骰子
- 08-05織夢(mèng)dedecms什么時(shí)候用欄目交叉功能?
- 01-10delphi制作wav文件的方法
- 01-11Mac OSX 打開(kāi)原生自帶讀寫(xiě)NTFS功能(圖文
- 04-02jquery與jsp,用jquery
- 01-11ajax實(shí)現(xiàn)頁(yè)面的局部加載
- 01-10SublimeText編譯C開(kāi)發(fā)環(huán)境設(shè)置
- 08-05dedecms(織夢(mèng))副欄目數(shù)量限制代碼修改
- 08-05DEDE織夢(mèng)data目錄下的sessions文件夾有什
- 01-10C#中split用法實(shí)例總結(jié)


