找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7121|回复: 0

win7垃圾清理代码修正版

[复制链接]
发表于 2012-10-21 15:38:12 | 显示全部楼层 |阅读模式
复制以下代码保存到记事本,将文件名改为:win7垃圾清理.bat 双击运行即可!

[AppleScript] 纯文本查看 复制代码
@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
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|第一站论坛 ( 蜀ICP备06004864号-6 )

GMT+8, 2025-6-7 23:10 , Processed in 0.154992 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表