怎么用代码清理C盘系统盘空间
的有关信息介绍如下:介绍用代码清理C盘空间的方法
右击桌面空白处,选择新建
点击选择文本文档
双击打开该文档
复制粘贴下方的代码:
@echo offecho 正在清除系统垃圾文件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /f /q %userprofile%\小甜饼s\*.*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
按下ctrl+S保存文档,然后关闭
把后缀名改为bat
最后双击该文档即可开始清理C盘系统盘空间