系统清理小工具

 平常清理系统什么的都是用360,超级兔子之类的,公司的机器不让装杂七六八的软件的,自己一点点清理又闲麻烦。所以经常用这段bat文件清理。

每次找起来麻烦,还是放到园子里好找。

@echo off
echo 正在为清除系统垃圾文件而进行系统路径遍历,需要几秒时间,请稍等......
del 
///%systemdrive%\*.tmp
del 
///%systemdrive%\*._mp
del 
///%systemdrive%\*.log
del 
///%systemdrive%\*.gid
del 
///%systemdrive%\*.chk
del 
///%systemdrive%\*.old
del 
///%systemdrive%\recycled\*.*
del 
///%windir%\*.bak
del 
///%windir%\prefetch\*.*
rd 
//%windir%\temp & md %windir%\temp
del 
//%userprofile%\cookies\*.*
del 
//%userprofile%\recent\*.*
del 
///"%userprofile%\Local Settings\Temporary Internet Files\*.*"
del 
///"%userprofile%\Local Settings\Temp\*.*"
del 
///"%userprofile%\recent\*.*"
echo 
*********************************************************************
echo 清除系统LJ完成!准备退出...
echo 
*********************************************************************
echo 剩余 
6
ping 
127.1 > nul
echo 剩余 
5
ping 
127.1 > nul
echo 剩余 
4
ping 
127.1 > nul
echo 剩余 
3
ping 
127.1 > nul
echo 剩余 
2
ping 
127.1 > nul
echo 剩余 
1
ping 
127.1 > null

exit 

把这段代码粘贴到记事本里,保存为.bat文件就可以了 。


原文地址:https://www.cnblogs.com/janes/p/2182533.html