XP、Win7通用终极垃圾清理bat
在桌面新建一个文本文档(.txt),打开并把下面文字复制进去,然后把文件名改为“终极垃圾清理.bat”当出现提示时时选择“是” ...
====================复制以下信息=====================
@echo off
echo 在程序没有结束的信息时,请勿关闭本窗口! title 清除系统垃圾!
echo 正在清除系统垃圾,请稍等...... @echo 删除没用的系统垃圾... sfc /purgecache Sv{n?BYq sfc /purgecache t.28IHJ
sfc /purgecache VUZeC,FfO del c:\\Thumbs.db /f/s/q/a del d:\\Thumbs.db /f/s/q/a del e:\\Thumbs.db /f/s/q/a del f:\\Thumbs.db /f/s/q/a
del /f /s /q %systemroot%\\driver cache/i386/Driver.cab del /f /s /q %systemroot%\\Temp\\*.*
del /f /s /q %systemroot%\\ServicePackFiles\\*.*
del /f /s /q %systemroot%\\SoftWareDistribution\\download\\*.* del /f /s /q %systemroot%\\System32\\dllcache\\*.* 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%\\prefetch\\*.* rd /s /q %windir%\\temp & md %windir%\\temp del /f /q %userprofile%\\cookies\\*.* del /f /q %userprofile%\\recent\\*.*
del /f /s /q \del /f /s /q \del /f /s /q \del /f /s /q c:\\*.tmp del /f /s /q c:\\*.~* del /f /s /q c:\\*.??~ del /f /s /q c:\\*.ftg del /f /s /q c:\\*.$$$ del /f /s /q c:\\*.gid del /f /s /q c:\\*.chk del /f /s /q c:\\*.old del /f /s /q d:\\*.tmp del /f /s /q d:\\*._mp del /f /s /q d:\\*.~* del /f /s /q d:\\*.??~ del /f /s /q d:\\*.ftg del /f /s /q d:\\*.$$$ del /f /s /q d:\\*.gid del /f /s /q d:\\*.chk
del /f /s /q d:\\*.old del /f /s /q e:\\*.tmp del /f /s /q e:\\*._mp del /f /s /q e:\\*.~* del /f /s /q e:\\*.??~ del /f /s /q e:\\*.ftg del /f /s /q e:\\*.$$$ del /f /s /q e:\\*.gid del /f /s /q e:\\*.chk del /f /s /q e:\\*.old del /f /s /q f:\\*.tmp del /f /s /q f:\\*._mp del /f /s /q f:\\*.~* del /f /s /q f:\\*.??~ del /f /s /q f:\\*.ftg del /f /s /q f:\\*.$$$ del /f /s /q f:\\*.gid del /f /s /q f:\\*.chk
del /f /s /q f:\\*.old
rd /s /q “%windir%\\temp\\*.*\
del /f /s /q \del /f /s /q \del /f /s /q \del /f /s /q \del /f /s /q \
del /f /s /q \del /f /s /q \del /f /s /q \del /f /s /q \del /f /s /q c:\\$recycle.bin\\*.* del /f /s /q d:\\$recycle.bin\\*.* del /f /s /q e:\\$recycle.bin\\*.* del /f /s /q f:\\$recycle.bin\\*.* RD %windir%\\$hf_mig$ /Q /S
dir %windir%\\$NtUninstall/a:d /b >%windir%\\Patches.txt for /f %%i in (%windir%\\Patches.txt) do rd %windir%\\%%i /s /q del %windir%\\Patches.txt /f /q
rd /s /q %windir%\\SoftwareDistribution\\Download & md %windir%\\SoftwareDistribution\\Download del /f /q \
del /f /s /q \del /f /s /q \del c:\\winnt\\logo1_.exe del c:\\windows\\logo1_.exe del c:\\winnt\\0sy.exe del c:\\windows\\0sy.exe del c:\\winnt\\1sy.exe del c:\\windows\\1sy.exe del c:\\winnt\\2sy.exe del c:\\windows\\2sy.exe del c:\\winnt\\3sy.exe del c:\\windows\\3sy.exe del c:\\winnt\\4sy.exe del c:\\windows\\4sy.exe del c:\\winnt\\5sy.exe del c:\\windows\\5sy.exe del c:\\winnt\\6sy.exe del c:\\windows\\6sy.exe del c:\\winnt\\7sy.exe del c:\\windows\\7sy.exe del c:\\winnt\\8sy.exe del c:\\windows\\8sy.exe del c:\\winnt\\9sy.exe
del c:\\windows\\9sy.exe del c:\\winnt\\rundl132.exe del c:\\windows\\rundl132.exe del e:\\winnt\\logo1_.exe del e:\\windows\\logo1_.exe del e:\\winnt\\0sy.exe del e:\\windows\\0sy.exe del e:\\winnt\\1sy.exe del e:\\windows\\1sy.exe del e:\\winnt\\2sy.exe del e:\\windows\\2sy.exe del e:\\winnt\\3sy.exe del e:\\windows\\3sy.exe del e:\\winnt\\4sy.exe del e:\\windows\\4sy.exe del e:\\winnt\\5sy.exe del e:\\windows\\5sy.exe del e:\\winnt\\6sy.exe del e:\\windows\\6sy.exe del e:\\winnt\\7sy.exe del e:\\windows\\7sy.exe del e:\\winnt\\8sy.exe del e:\\windows\\8sy.exe del e:\\winnt\\9sy.exe del e:\\windows\\9sy.exe del e:\\winnt\\rundl132.exe del e:\\windows\\rundl132.exe net share c$ /d net share d$ /d net share e$ /d net share F$ /d net share G$ /d net share h$ /d net share i$ /d net share j$ /d net share admin$ /d net share ipc$ /d del c:\\winnt\\logo1_.exe del c:\\windows\\logo1_.exe del c:\\windows\\vdll.dll del c:\\winnt\\vdll.dll del c:\\windows\\tdll.dll del c:\\winnt\\tdll.dll del c:\\windows\\dll.dll
del c:\\winnt\\dll.dll del c:\\winnt\\kill.exe del c:\\windows\\kill.exe del c:\\winnt\\sws32.dll del c:\\windows\\sws32.dll del c:\\winnt\\rundl132.exe del c:\\windows\\rundl132.exe del e:\\winnt\\logo1_.exe del e:\\windows\\logo1_.exe del e:\\windows\\vdll.dll del e:\\winnt\\vdll.dll del e:\\windows\\tdll.dll del e:\\winnt\\tdll.dll del e:\\windows\\dll.dll del e:\\winnt\\dll.dll del e:\\winnt\\kill.exe del e:\\windows\\kill.exe del e:\\winnt\\sws32.dll del e:\\windows\\sws32.dll del e:\\winnt\\rundl132.exe del e:\\windows\\rundl132.exe
if exist \
if exist \if exist \if exist \if exist \if exist \if exist \if exist \if exist \if exist \if exist \if exist \if exist \if exist \if exist \if exist \if exist \if exist \
if exist \if exist \if exist \if
exist
\
del
/f
/q %windir%\\SoftwareDistribution\\Download\\*.* 2>nul
/s