admin 管理员组文章数量: 1086019
2024年12月30日发(作者:cookiejar解析)
@echo off
color 0a
title 清理win7系统垃圾---
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo.★☆ ☆★
echo.★☆ ☆★
echo.★☆ ☆★
echo ★☆ 正在清除系统垃圾文件,请稍等..... ☆★
echo.★☆ ☆★
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo 清理垃圾文件,速度由电脑文件大小而定。在没看到结尾信息时
echo 请勿关闭本窗口。
echo 正在清除系统垃圾文件,请稍后.....
color 0a
echo 删除补丁备份目录
RD %windir%$hf_mig$ /Q /S
echo 把补丁卸载文件夹的名字保存成
dir %windir%$NtUninstall* /a:d /b >%windir%
echo 从中读取文件夹列表并且删除文件夹
for /f %%i in (%windir%) do rd %windir%%%i /s /q
echo 删除
del %windir% /f /q
echo 删除补丁安装记录内容(下面的del /f /s /q %systemdrive%*.log已经包含删除此类文
件)
del %windir%KB*.log /f /q
echo 删除系统盘目录下临时文件
del /f /s /q %systemdrive%*.tmp
echo 删除系统盘目录下临时文件
del /f /s /q %systemdrive%*._mp
echo 删除系统盘目录下日志文件
del /f /s /q %systemdrive%*.log
echo 删除系统盘目录下GID文件(属于临时文件,具体作用不详)
del /f /s /q %systemdrive%*.gid
echo 删除系统目录下scandisk(磁盘扫描)留下的无用文件
del /f /s /q %systemdrive%*.chk
echo 删除系统目录下old文件
del /f /s /q %systemdrive%*.old
echo 删除回收站的无用文件
del /f /s /q %systemdrive%recycled*.*
echo 删除系统目录下备份文件
del /f /s /q %windir%*.bak
echo 删除应用程序临时文件
del /f /s /q %windir%prefetch*.*
echo 删除系统维护等操作产生的临时文件
rd /s /q %windir%temp & md %windir%temp
echo 删除当前用户的COOKIE(IE)
del /f /q %userprofile%cookies*.*
echo 删除internet临时文件
del /f /s /q "%userprofile%local settingstemporary internet files*.*"
echo 删除当前用户日常操作临时文件
del /f /s /q "%userprofile%local settingstemp*.*"
echo 删除访问记录(开始菜单中的文档里面的东西)
del /f /s /q "%userprofile%recent*.*"
echo
color 0f
@echo off
color 0a
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 settingstemp*.*"
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:$*.*
del /f /s /q d:$*.*
del /f /s /q e:$*.*
del /f /s /q f:$*.*
del /f /s /q g:$*.*
echo.
echo **********************************
echo.
echo 第 四
echo 删除自动更新后留下的软件
echo.
echo **********************************
echo.
rd /s /q %windir%SoftwareDistributionDownload
md %windir%SoftwareDistributionDownload
echo.
echo **********************************
echo.
echo 第 五
&
echo 删除上网产生的Cookies
echo.
echo **********************************
echo.
del /f /q “%userprofile%AppDataRoamingMicrosoftWindowsCookies*.*”
echo.
echo **********************************
echo.
echo 第 六
echo 删除上网产生的临时文件
echo.
echo **********************************
echo.
del /f /s /q "%userprofile%AppDataLocalMicrosoftWindowsTemporary Internet Files*.*"
echo.
echo **********************************
echo.
echo 第 七
echo 运行私隐保护
echo.
echo **********************************
echo.
del /f /s /q "%userprofile%AppDataRoamingMicrosoftWindowsRecent*.*"
echo.
echo ==================================================================
echo off
echo 正在清除系统垃圾文件,请稍等......
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 "%userprofile%Local SettingsTemporary Internet Files*.*"
del /f /s /q "%userprofile%Local SettingsTemp*.*"
del /f /s /q "%userprofile%recent*.*"
echo 清除系统LJ完成!
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo ★☆
echo.★☆
echo.★☆
echo ★☆
echo ★☆ 清理全部完成
☆★
☆★
☆★
☆★
☆★
echo.★☆ ☆★
echo ★☆ ☆★
echo.★☆ ☆★
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo ★=====================按任意键关闭========================
echo.
echo. & pause
请复制以上内容于文本文档中,设为批处理文件(.bat)
版权声明:本文标题:win7最新版bat垃圾清理 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1735613510a1680629.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论