2024年1月12日发(作者:)
计算机清理垃圾程序
@echo off
if not %OS%==Windows_NT exit
echo Vista上清空最近使用的项目...
rem 系统版本判断
reg query "HKLMSOFTWAREMicrosoftWindows NTCurrentVersion" /v ProductName |find
"Vista"
if errorlevel 1 goto previous
if not errorlevel 1 goto vista
:previous
echo 清空IE临时文件目录和历史记录...
del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"
del /f /s /q "%userprofile%Local SettingsHistory*.*"
rem cookie还是保留吧...
rem del /f /q %userprofile%COOKIES s*.*
del /f /q /s %userprofile%recent*.*
goto common
:vista
del /f /s /q "%APPDATA%MicrosoftWindowsRecent*.*"
del /f /s /q "%LOCALAPPDATA%MicrosoftWindowsTemporary Internet Files*.*"
del /f /s /q /a "%LOCALAPPDATA%MicrosoftWindowsHistory*.*"
:common
del /f /s /q "%Temp%*.*"
echo 正在清除系统临时文件 *.tmp *._tmp *.log *.chk *.old ,请稍等...
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
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
echo 清理系统盘无用文件...
%windir% /purgecache
echo 优化预读信息...
%windir% %systemdrive% -b
echo 清除系统完成!&通宵狂人工作室吴贤玮制作&
echo & pause


发布评论