如何实现自动清除电脑垃圾
实现自动清除电脑垃圾方法很多,但小篇还是比较偏向于开机自动清理,这样能很好的保持开机后系统运行的速度。针对不同的方法,小篇在这里和大家说明一下。
总的来说,分成两步,第一步是制作清理垃圾BAT文件。第二步是实现开机自动运行该程序。
具体如下:
第一步,制作清理垃圾BAT文件
将下面的文字复制到记事本,然后保存为清理.bat文件,注意文件的后辍名是bat
XP系统:
@echo off
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 清理系统垃圾完成!
WIN7系统
@echo off
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 清除系统垃圾完成!按任意键继续……
echo. & pause
win10系统
@echo off
del "%tmp%\*.*" /s /q /f
FOR /d %%p IN ("%tmp%\*.*") DO rmdir "%%p" /s /q
第二步,设置开机自动清理系统垃圾
把清理.bat文件复制到启动文件夹
XP系统启动文件夹路径:
X:\Documents and Settings\All Users\「开始」菜单\程序\启动
注:X为XP系统盘盘符
WIN7系统启动文件夹路径:
X:\Users\计算机名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
注:X为
Win7系统盘盘符
win10系统启动文件夹路径:
X:\Users\用户名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
注:X为Win10系统盘盘符
通过以上两步,就可以实现自动清除电脑垃圾了。
以上如何实现自动清除电脑垃圾内容出自
土豆PE,感谢浏览~!
上一篇:[常识汇粹]如何下载CNTV的视频?
评论