C盤忽然報警,空間不足,顯示成紅色了

一、清理系統垃圾文件微信

將以下命令保存到一個bat文件中,執行,刪除垃圾文件cookie

@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

 

二、C盤清理ide

鼠標右鍵C盤->屬性(Property)->常規(General)->磁盤清理(Disk Cleanup),而後把該刪除的所有刪除掉性能

三、到 目錄  C:\Users\xxx\My Documents\WeChatFiles,其中xxx爲當前用戶名,該刪的刪除吧。而後在微信設置裏,把文件目錄設置到其它盤符上。若是該目錄下 還有Tencent文件夾,那就是裝了QQ了,把裏面該清理的清理了,而後在QQ的設置裏面把接收文件等目錄設置到其它盤符吧fetch

四、若是使用了休眠,能夠把休眠關掉,節約C盤空間。關閉休眠命令spa

powercfg -h off

若是還想在之後使用休眠的話,啓用休眠,命令行執行以下命令命令行

powercfg -h on

 五、若是仍是空間不足,將C盤上默認的虛擬內存設置,清理掉便可。code

個人電腦->右鍵->屬性->高級系統設置(Advanced system settings)->高級(advanced)->性能(Performance)->設置(Settings)->高級(advanced)->虛擬內存(Virtual memory)->更改(change...)->選中C盤後設置爲 無分頁文件(no paging file)->點擊設置(set),而後肯定,重啓電腦。orm

相關文章
相關標籤/搜索