Win7电脑制作清理垃圾工具方法

admin win7教程评论819字数 955阅读模式

在我们日常使用win7系统电脑时,应该有很多用户想要自己制作一个清理垃圾工具的情况,那么Win7电脑怎么制作清理垃圾工具呢?下面小编就为大家带来Win7电脑制作清理垃圾工具的方法,感兴趣的小伙伴快来看看吧。

Win7电脑制作清理垃圾工具的方法

1、运行cmd,输入DEL /?

Win7电脑制作清理垃圾工具方法

2、新建txt文件,重命名为“清除系统垃圾.txt”,输入以下代码:

01@echo off

02echo 请勿关闭本窗口!

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

04del /f /s /q %systemdrive%\*.tmp

05del /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md
%windir%\temp

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

07del /f /s /q %systemdrive%\*._mp

08del /f /s /q %windir%\*.bak

09del /f /s /q %systemdrive%\*.log

10del /f /s /q %systemdrive%\*.gid

11del /f /s /q %systemdrive%\*.chk

12del /f /s /q %systemdrive%\*.old

13del /f /s /q %systemdrive%\recycled\*.*

14del /f /q %userprofile%\cookies\*.*

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

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

17del /f /s /q "%userprofile%\recent\*.*"

18echo 清除系统垃圾完成!

3、这段代码意思时在安静模式下,删除一个或多个文件或者目录列表中只读文件和所有子目录中的指定的文件,删除全局通配符时,不要求确认。

4、保存文件,再把这个记事本
“清除系统垃圾.txt”进行重命名为.bat。

5、只要双击运行这个bat批处理文件即可清理系统垃圾了,清除完垃圾之后会自动退出文件。

以上就是小编为小伙伴们带来的Win7电脑制作清理垃圾工具的方法,更多相关教程请关注爱尚教程网。

版权声明:文章图片资源来源于网络,如有侵权,请留言删除!!!
admin
  • 本文由 发表于 2019年7月7日 11:04:19
  • 转载请务必保留本文链接:https://www.58pxe.com/2957.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: