命令行清理电脑垃圾,提供运行速度的方法

作者:如沐春风 | 创建时间: 2023-03-23
采用命令行的原始方法,能够最大化的清理文件,但不占用系统空间和内存资源,运行完成后及退出。...
命令行清理电脑垃圾,提供运行速度的方法

操作方法

新建一文本文件,双击打开

双击打开文件,将下面文字拷贝到该文件 @echo off echo 正在清除系统垃圾文件,请稍等...... del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.log 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 清除系统LJ完成! echo. & pause

点击键盘“ctrl+s”,或者点击“文件”“保存”,然后关闭该文件

选中该文件,点击右键,点击重命名

将扩展名改为.bat

双击运行,可以看到运行的细节,有很多用不到的文件被删掉了

等运行完成,可以看到红框内字符; 有心的你可以比较下C盘运行前后的大小

点击展开全文

更多推荐