多语言展示
当前在线:963今日阅读:3今日分享:40

怎样清理C盘系统垃圾文件

C盘可用空间总是不断减少,我们就要定期清理一下.
步骤/方法
1

在桌面上新建一个文本文档

2

在里面输入: @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 清除系统LJ完成!输入任意继续.... pause

3

然后把这个文本文档的后缀名(原来是txt)改成bat,保存,然后打开,就OK了.

注意事项

del /f /s /q '%userprofile%\Local Settings\Temporary Internet Files\*.*'这个句子就是清除的IE缓存。有些文件清除不了是因为这些文件正在被使用,比如说你在打开网页的时候IE缓存里面的某些图片就没办法给删除。你可以在安全模式下运行一下,保证非常干净。

推荐信息