admin 发表于 2012-10-21 15:38:12

win7垃圾清理代码修正版

复制以下代码保存到记事本,将文件名改为:win7垃圾清理.bat 双击运行即可!

@echo off
color 0A
@echo.
@echo.
@echo.
@echo.======================================================
@echo.             win7系统垃圾文件清理 bbs.swdyz.com
@echo.               
@echo.            制作:第一站后花园
@echo.
@echo. 剔除del /f /s /q %windir%\prefetch\*.*这一项,如果错误地执行了它,你的系统开机和程序运行速度可能成倍降低!Prefetcher(预读取)是始于Windows XP的一项内存管理技术,它能够跟踪用户习惯,预先从硬盘中载入一部分常用程序运行所需的数据片段到物理内存中,从而提升系统和程序运行速度)      
@echo.======================================================
pause
taskkill /f /im explorer.exe
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
rd /s /q %windir%\temp & md %windir%\temp
del /f /s /q "%userprofile%\local settings\temp\*.*"
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %windir%\*.bak
del /f /s /q %systemdrive%\*.old
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\*.*
del /f /s /q g:\$recycle.bin\*.*
rd /s /q %windir%\SoftwareDistribution\Download & md %windir%\SoftwareDistribution\Download
del /f /q "%userprofile%\AppData\Roaming\Microsoft\Windows\Cookies\*.*"
del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\AppData\Roaming\Microsoft\Windows\Recent\*.*"
start explorer
页: [1]
查看完整版本: win7垃圾清理代码修正版