做一个自己的清理临时文件的小程序(附成品&升级版)

1、新建一个txt文档,将以下代码粘到文档里:

@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\recycled\*.*
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

 

2、保存为bat文件,以管理员身份运行。

不想自己做的点 这里 领取    密码: ua28

升级版点 这里  领取    密码: 6ij7

 

posted @ 2020-03-27 20:51  予或  阅读(389)  评论(0编辑  收藏  举报