閱讀屋>歷史> 教你如何清理歷史記錄的程式碼

教你如何清理歷史記錄的程式碼

教你如何清理歷史記錄的程式碼

  複製程式碼 程式碼如下:

  @echo off

  title: IE temporary file r

  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

  批處理怎樣清理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~1tempor~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~1history*.*" >nul 2>nul

  echo y | reg "HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerTypedURLS" >nul 2>nul

  echo y | reg "HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersioninternet settings5.0cacheextensible cache" >nul 2>nul

  cls

  echo 清理完畢,按任意鍵退出

  pause>nul

  下面的'的程式碼是經過最佳化,可以記錄清理日誌資訊等

  複製程式碼 程式碼如下:

  @echo off

  color 0a

  mode con cols=100 lines=350

  echo %date% %time%

  set time1=%time::=%

  set file=%time1:~,8%

  echo 即將進行清理,請先關閉瀏覽器

  set /p=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~1tempor~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~1history*.*" >>cls%file%.log 2>>clsErr%file%.log

  echo ------------------------------------開始清理:登錄檔資訊>>cls%file%.log

  echo y | reg "HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerTypedURLS" >>cls%file%.log 2>>clsErr%file%.log

  echo y | reg "HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersioninternet settings5.0cacheextensible cache" >>cls%file%.log 2>>clsErr%file%.log

  echo 清理完畢,按任意鍵退出

  :end

  pause

  找了2個檔案,

  但能否將這2個檔案,做到1個bat批處理檔案 或者 reg檔案 裡面呢?

  1、徹底遮蔽歷史記錄.ini

  檔案內容是:

  複製程式碼 程式碼如下:

  HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerTypedURLs

  HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain

  "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"

  reg add "HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain" /f /v "Save_Session_History_On_Exit" /t REG_SZ /d "yes"

  echo HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerTypedURL [8]>tmp.ini

  regini tmp.ini

  If "%ERRORLEVEL%"=="0" del tmp.ini

  以上這個,可以遮蔽ie瀏覽器的“歷史記錄”

  但如何清除ie位址列的歷史網站記錄呢?

【教你如何清理歷史記錄的程式碼】相關文章: