系统垃圾清除

系统垃圾既占空间,又可能暗藏病毒。手动清除费事,建议用批处理。

1。准备知识

a.环境变量,运行/cmd/set,可以看到

"%userprofile%,系统当前用户的文件夹,平时产生的垃圾主要在这里

"%userprofile%/recent   最近的文档

"%userprofile%/local settings/Temp 

"%userprofile%/local settings/History                                ie历史

"%userprofile%/local settings/Temporary Internet Files   ie临时文件

b.Del命令

/q       安静  /s 包括子目录 /f 强制

2.批处理脚本

echo 正在清除系统垃圾文件,请稍等......

del /f /q %userprofile%/recent/*.*

del /f /s /q "%userprofile%/Local Settings/Temp/*.*"

del /f /s /q "%userprofile%/Local Settings/History/*.*"

del /f /s /q "%userprofile%/Local Settings/Temporary Internet Files/*.*"

echo 清除系统垃圾完成!

3.更全的垃圾删除脚本

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 清除系统垃圾完成!

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值