您的位置:首页 > 其它

About Windows下清理一些系统垃圾文件的bat脚本

2020-04-02 19:05 465 查看

Windows下清理一些系统垃圾文件的bat脚本:

@echo off
rem Windows垃圾清理.
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 Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清理系统垃圾完成!
echo. & pause

注:管理员用户下无障碍清除,其他用户可能存在无访问权限可能

  • 点赞
  • 收藏
  • 分享
  • 文章举报
ddttoop 发布了68 篇原创文章 · 获赞 3 · 访问量 1123 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: