分享

新版win7垃圾清理bat(第二版)

 fs4523 2016-05-01

新版win7垃圾清理bat(第二版)


随着对win7的认识的深入,本版本的垃圾清理是较全面和安全。
系统的运行流畅与否,主要与您的电脑的硬件相关,其次是系统完整性和病毒,之后才是我们所说的垃圾。

给系统盘分配大一些的空间是有好处的,况且,现在的硬盘越来越大,我们不应该吝啬,更没有必要清理一些关乎系统性能的所谓的垃圾。

在此,建议使用360安全卫士的“垃圾清理”和“痕迹清理”,更专业,更全面,更安全。唔不是360的水军,是一位普通老百姓,一直使用360安全卫士,主要是免费,功能较全。

本版去除了以下这几条无用的命令:
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

2010.06.05 更新

@echo off 
color 0b
echo ==================================================================
echo.
echo 您已启动 WIN 7 系统垃圾清理 ,这里运行的命令都很安全!
echo.
echo ==================================================================
echo.
echo 在程序没有结束的信息时,请勿关闭本窗口!
echo.
echo ==================================================================
echo.
echo 正在清除系统垃圾文件,请稍后...... 
echo.
echo ==================================================================
echo.
echo **********************************
echo.
echo 第 一
echo 删除临时文件
echo.
echo **********************************
echo.
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 %windir%\prefetch\*.* 
echo.
echo **********************************
echo.
echo 第 二
echo 删除日志文件
echo 删除帮助索引文件
echo 删除磁盘扫描留下的临时文件
echo 删除备份文件
echo 删除旧备份文件
echo.
echo **********************************
echo.
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 
echo.
echo **********************************
echo.
echo 第 三
echo 清空回收站
echo.
echo **********************************
echo.
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\*.*
echo.
echo **********************************
echo.
echo 第 四
echo 删除自动更新后留下的软件

echo.
echo **********************************
echo.
rd /s /q %windir%\SoftwareDistribution\Download & md %windir%\SoftwareDistribution\Download
echo.
echo **********************************
echo.
echo 第 五
echo 删除上网产生的Cookies
echo.
echo **********************************
echo.
del /f /q “%userprofile%\AppData\Roaming\Microsoft\Windows\Cookies\*.*”
echo.
echo **********************************
echo.
echo 第 六
echo 删除上网产生的临时文件
echo.
echo **********************************
echo.
del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"
echo.
echo **********************************
echo.
echo 第 七
echo 运行私隐保护
echo.
echo **********************************
echo.
del /f /s /q "%userprofile%\AppData\Roaming\Microsoft\Windows\Recent\*.*" 
echo.
echo ==================================================================
echo.
echo          已清理完成!          
echo.
echo.
echo ==================================================================
echo.
echo           再见!
echo.
echo    ——因您在,我很幸福 编辑
echo.
echo ==================================================================
echo.
echo. & pause

(完)

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多