您的位置首页>互联网>

分享windows系统垃圾文件的清除方法

导读今天来聊聊一篇关于分享windows系统垃圾文件的清除方法的文章,现在就为大家来简单介绍下分享windows系统垃圾文件的清除方法,希望对各位小伙

今天来聊聊一篇关于分享windows系统垃圾文件的清除方法的文章,现在就为大家来简单介绍下分享windows系统垃圾文件的清除方法,希望对各位小伙伴们有所帮助。

具体步骤如下:

1)打开“记事本或写字板”,输入以下内容:

@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

2)然后另存为.bat文件.

3)最后,直接双击这个批处理文件就可清楚系统的一些垃圾文件!!!

其实直接用脚本语言也能实现上述批处理的功能,只是脚本文件在运行过程中,容易遇到“windows Scripting Host - 脚本执行错误”

相信通过分享windows系统垃圾文件的清除方法这篇文章能帮到你,在和好朋友分享的时候,也欢迎感兴趣小伙伴们一起来探讨。

郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。