C盤清理命令

電腦使用久了就會變得遲鈍而且卡,這個時候就需要清理一下C盤來使其加速,很多人都會選擇通過輸入指令來針對性的清理,那麼今天就來和大家分享一下這些指令。

C盤清理命令

1、清理幾個比較多垃圾文件的地方

DEL /F /S /Q "C:WINDOWSPCHealthERRORREPQSIGNOFF*.*"

DEL /F /S /Q "C:WINDOWSPCHealthERRORREPUserDumps*.*"

DEL /F /S /Q "C:WINDOWSsystem32logFilesHTTPERR*.*"

DEL /F /S /Q "C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files*.*"

DEL /F /S /Q "C:WINDOWSMicrosoft.NETFrameworkv1.1.4322Temporary ASP.NET Files*.*"

DEL /F /S /Q "C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files*.*"

DEL /F /S /Q "C:windowstemp*.*"

DEL /F /S /Q /A:S "C:WINDOWSIIS Temporary Compressed Files*.*"

2、刪除系統盤目錄下臨時文件

del /f /s /q %systemdrive%*._mp

3、刪除系統盤目錄下日誌文件

del /f /s /q %systemdrive%*.log

4、刪除系統目錄下old文件

del /f /s /q %systemdrive%*.old

5、刪除回收站的無用文件

del /f /s /q %systemdrive%recycled*.*

6、刪除系統目錄下備份文件

del /f /s /q %windir%*.bak

7、刪除應用程序臨時文件
del /f /s /q %windir%prefetch*.*

8、刪除系統維護等操作產生的臨時文件

del /f /s /q %windir%temp*.*

9、刪除當前用户的COOKIE(IE)

del /f /s /q %userprofile%cookies*.*

10、刪除當前用户日常操作臨時文件

del /f /s /q "%userprofile%local settingstemp*.*"

%userprofile%local settings=C:UsersAdministratorAppDataLocal

11、刪除訪問記錄(開始菜單中的文檔裏面的東西)

del /f /s /q "%userprofile%recent*.*"