Win7电脑制作清理垃圾工具的方法(win7怎么清理电脑垃圾)

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

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

1、运行cmd,输入DEL /?

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

01@echo off

02echo 请勿关闭本窗口!

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

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

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

06del /f /s /q “%userprofile%Local SettingsTemp*.*”

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%ecycled*.*

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

15del /f /q %userprofile%ecent*.*

16del /f /s /q “%userprofile%Local SettingsTemporary Internet Files*.*”

17del /f /s /q “%userprofile%ecent*.*”

18echo 清除系统垃圾完成!

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

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

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

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