2023-03-28 18:16:21 发布人:hao333 阅读( 3775)
@echooffecho-----------------------------------------------------------------------------echo清空IE临时文件目录 del f s q"%userprofile% LocalSettings TemporaryInternetFiles * *"del f s q"%userprofile% LocalSet
@echo off
echo -----------------------------------------------------------------------------
清空IE临时文件目录。
del /f /s /q '%userprofile%\Local Settings\Temporary Internet Files\*.*'
del /f /s /q '%userprofile%\Local Settings\Temp\*.*'
Echo正在清除系统临时文件*。tmp *。_tmp *。日志*。chk *。老孙,请稍等。
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
雷姆。日志最有可能有用。
rem del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
Echo清空了垃圾箱,备份了文件和预先缓存的脚本。
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp md %windir%\temp
雷姆库克和最近的历史应该被保留。
rem del /f /q %userprofile%\COOKIES s\*.*
rem del /f /q %userprofile%\recent\*.*
Echo清理系统盘上无用的文件。
%windir%\system32\sfc.exe /purgecache
Echo优化预读信息.
%windir%\system32\defrag.exe %systemdrive% -b
艾可,清空系统。完整!
echo -----------------------------------------------------------------------------
将上面的文件保存为“一键式cclean。蝙蝠”,然后双击运行。
建议:最好每周跑一次大扫除。
下面一条是:清理可能需要更长时间。
超级一键删除垃圾。蝙蝠
@echo off
color 0A
标题历史跟踪和系统垃圾清理测试版1.0
*完全删除Thumbs.db(缩略图缓存文件)。
@echo offsetlocal enabledelayedexpansion
for /f 'delims=' %%i in ('fsutil fsinfo drives^|find ''') do (
set drive_=%%i
fsutil fsinfo drivetype!drive_:~0,2!|查找'固定nul del /a /f /q /s!drive_:~0,2!\Thumbs.db
)
Echo正在cclean归档,请稍等。
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\*.tmp
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q '%userprofile%\Local Settings\Temporary Internet Files\*.*'
del /f /s /q '%userprofile%\Local Settings\Temp\*.*'
del /f /s /q '%userprofile%\recent\*.*'
del /f /q '%ALLUSERSPROFILE%\Documents\DrWatson\*.*'nul 2nul
del /f /q '%USERPROFILE%\Application Data\Microsoft\office\Recent\*.lnk'nul 2nul
*清除局域网共享的痕迹。
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\WorkgroupCrawler\Shares' /f nul 2nul
*用户运行或操作历史
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\Folder' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.txt' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.rar' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.mp3' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.jpg' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.ini' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.bmp' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.doc' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.eip' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.htm' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.ico' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.inf' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.gif' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.wav' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.xls' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.rm' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\*' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\mp3' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\rm' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\wav' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\bat' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\exe' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\eip' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\ico' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\htm' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\jpg' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A12B-00AA004AE837}\Count' /va /f nul 2nul
reg delete 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count' /va /f nul 2nul
相关阅读
RelatedReading猜你喜欢
Guessyoulike