ITPub博客

首页 > Linux操作系统 > Linux操作系统 > System (OS) rubbish cleanup.bat

System (OS) rubbish cleanup.bat

原创 Linux操作系统 作者:benjamin_ZX 时间:2010-06-22 15:03:21 0 删除 编辑
@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 Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统垃圾完成!
echo. & pause

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24106960/viewspace-665869/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 3G switch
请登录后发表评论 登录
全部评论

注册时间:2010-06-17

  • 博文量
    69
  • 访问量
    39485