C盘突然报警,空间不足,显示成红色了

1、清理系统垃圾文件

将如下命令保存到一个bat文件中,执行,删除垃圾文件

@echo off 
net share c$ /del
net share d$ /del 
net share e$ /del 
net share f$ /del 
net share g$ /del 
net share h$ /del 
net share admin$ /del
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%\Local Settings\History\*.*"
del /f /s /q "%userprofile%\Cookies\*.*" 
del /f /s /q "%userprofile%\recent\*.*" 

del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"


del /f /s /q "%USERPROFILE%\AppData\Local\Temp\*.*"
del /f /s /q "%USERPROFILE%\AppData\Local\Temp\*.*"

echo 清除系统LJ完成! 
View Code

 

2、C盘清理

鼠标右键C盘->属性(Property)->常规(General)->磁盘清理(Disk Cleanup),然后把该删除的全部删除掉

3、到 目录  C:\Users\xxx\My Documents\WeChatFiles,其中xxx为当前用户名,该删的删除吧。然后在微信设置里,把文件目录设置到其它盘符上。如果该目录下 还有Tencent文件夹,那就是装了QQ了,把里面该清理的清理了,然后在QQ的设置里面把接收文件等目录设置到其它盘符吧

4、如果使用了休眠,可以把休眠关掉,节约C盘空间。关闭休眠命令

powercfg -h off

如果还想在以后使用休眠的话,启用休眠,命令行执行如下命令

powercfg -h on

 5、如果还是空间不足,将C盘上默认的虚拟内存设置,清理掉即可。

我的电脑->右键->属性->高级系统设置(Advanced system settings)->高级(advanced)->性能(Performance)->设置(Settings)->高级(advanced)->虚拟内存(Virtual memory)->更改(change...)->选中C盘后设置为 无分页文件(no paging file)->点击设置(set),然后确定,重启电脑。

 

posted @ 2018-07-27 14:32  磨叽开发者  阅读(1239)  评论(0编辑  收藏  举报