- @echo off
- echo 清空cookies
- del /s/q/f "%USERPROFILE%\cookies\*.*" >nul 2>nul
- echo 清理最近打开的文档纪录
- del /s/q/a-s "%USERPROFILE%\Recent\*.*" >nul 2>nul
- echo 清理历史纪录
- del /s/q/f "%USERPROFILE%\Local Settings\History\*.*" >nul 2>nul
- echo 清理 Google 历史纪录
- del /s/q/f "%USERPROFILE%\Application Data\Google\Local Search History\*.*"
- echo 清理 IE 临时文件
- set regkey=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
- for /f "skip=4 tokens=2,*" %%i in ('reg query "%regkey%" /v "Cache"') do del /f/s/q "%%j\*.*" >nul 2>nul
- echo 清理 IE 地址栏的使用痕迹
- reg delete "HKCU\Software\Microsoft\Internet Explorer\TypedURLs" /f >nul 2>nul
- echo 清理搜索纪录
- reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /f >nul 2>nul
- reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\DocFindSpecMRU" /f >nul 2>nul
- echo 清理开始运行里的使用痕迹
- reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /f >nul 2>nul
- echo 清理 Windows Media Player 最近打开纪录
- reg delete "HKCU\Software\Microsoft\MediaPlayer\Player\RecentFileList" /f >nul 2>nul
- echo 清理 RealPlayer 最近打开纪录
- for /l %%i in (1,1,10) do reg delete "HKCU\Software\RealNetworks\RealPlayer\6.0\Preferences\MostRecentClips%%i" /f >nul 2>nul
- pause
复制代码
|