【天天速看料】怎样清除系统垃圾 清除系统垃圾方法 怎样清除系统缓存垃圾

2023-06-20 11:34:11 来源:

怎样清除系统垃圾?系统使用的时间久了,就会产生一些垃圾文件,及时清除这类无用、临时的文件,对于提升整个系统的性能和反应速度具有十分明显的效果。那么,怎样清除系统垃圾呢?下面就来看一下清除系统垃圾的方法。


(资料图片仅供参考)

清除系统垃圾方法

点击“开始”→“运行”,打开“运行”对话框,输入命令“cleanmgr.exe”启动磁盘清理程序。

在打开的“选择驱动器”窗口中选择要清理的磁盘,如“C盘”,选择完成后点击“确定”按钮。

然后就会自动运行“磁盘清理”程序对当前所选磁盘进行清理工作。

另外,我们也可以编写一个批处理文件,用来对指定的目录和文件类型进行定向清理。

右击“桌面”,选择“新建”→“文件文件”,然后在文件中输入的内容:

新建一个记事本,在里面粘贴以下内容

@echo off

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

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\*.*"

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

echo 清除系统垃圾文件完成------------------------

echo. & pause

然后把记事本另存为“Clear.bat“的批处理文件。

最后双击运行该文件,就可以执行清除系统垃圾的工作啦。

标签:

企业要闻

新闻快讯