Win7 解决C盘用量不断增大

来源:互联网 发布:终端进入mysql数据库 编辑:程序博客网 时间:2024/04/27 23:35
1.删除休眠文件: hiberfil.sys
cmd -> powercfg -h off;

2.关闭虚拟内存: pagefile.sys
计算机 -> 属性 -> 高级系统设置 -> 高级 -> 性能(设置) -> 高级 -> 虚拟内存(更改) -> 无分页文件

3.删除系统还原点
计算机 -> 属性 -> 高级系统设置 -> 系统保护 -> 配置 -> 删除

4.清除C盘空间垃圾文件,把下面的这些代码保存成一个clean.bat文件,直接运行即可.
@echo off
echo 正在帮您清除系统垃圾文件,请稍等......  
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
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

 

原创粉丝点击