怎样清除系统垃圾 清除系统垃圾方法【方法详解】

怎样清除系统垃圾?系统使用的时间久了,就会产生一些垃圾文件 , 及时清除这类无用、临时的文件,对于提升整个系统的性能和反应速度具有十分明显的效果 。那么 , 怎样清除系统垃圾呢?下面就来看一下清除系统垃圾的方法 。
清除系统垃圾方法
点击开始运行,打开运行对话框,输入命令cleanmgr.exe启动磁盘清理程序 。
在打开的选择驱动器窗口中选择要清理的磁盘,如C盘 , 选择完成后点击确定按钮 。
然后就会自动运行磁盘清理程序对当前所选磁盘进行清理工作 。
另外,我们也可以编写一个批处理文件,用来对指定的目录和文件类型进行定向清理 。
右击桌面 , 选择新建文件文件,然后在文件中输入如图所示的内容:
新建一个记事本,在里面粘贴以下内容
@echo off
echo 正在清除系统垃圾文件,请稍等--------------
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\tempmd %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的批处理文件 。
【怎样清除系统垃圾 清除系统垃圾方法【方法详解】】最后双击运行该文件,就可以执行清除系统垃圾的工作啦 。

怎样清除系统垃圾 清除系统垃圾方法【方法详解】的详细内容就为您分享到这里,【精彩生活】jing111.com小编为您精选以下内容,希望对您有所帮助: