janes

 平常清理系统什么的都是用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文件就可以了 。


 

分类:

技术点:

相关文章:

  • 2021-08-26
  • 2021-11-28
  • 2022-01-23
  • 2021-08-29
  • 2022-02-22
  • 2021-12-12
  • 2021-12-10
  • 2022-02-26
猜你喜欢
  • 2021-06-08
  • 2022-01-19
  • 2021-04-02
  • 2021-07-15
  • 2021-12-31
相关资源
相似解决方案