清理IE和使用歷史痕跡

清除IE臨時文件的Batch腳本html

@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瀏覽器

===========================================================================cookie

批處理怎樣清理XP系統的使用痕跡能?
xp系統下,可否用   批處理    實現清理使用痕跡的功能?
IE使用痕跡  系統使用痕跡  軟件使用痕跡等等。
網上搜索了幾個,感受都不太好用。
不想用軟件清理,只想運行一下bat文件,就自動清理完了。
有沒有bat批處理,實現 清理天使.rar  這個軟件裏面的清理痕跡功能?less


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

下面的的代碼是通過優化,能夠記錄清理日誌信息等spa

@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 編輯.net


多謝樓上。
找了2個文件,
但可否將這2個文件,作到1個bat批處理文件 或者 reg文件 裏面呢?日誌

一、完全屏蔽歷史記錄.ini
文件內容是:code

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]

二、完全屏蔽歷史記錄.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

相關文章
相關標籤/搜索