C盘瘦身链接
第一步|打开记事本
通过【开始-所有程序-附件-记事本】或者直接按下快捷键【Win + R】打开运行,并输入【Notepad】并回车。
如何清理c盘垃圾
第二步:输入以下代码
@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%\*.bakdel /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
输入后的效果如下图所示:
如何清理c盘垃圾
第三步:保存成.bat文件
确认以上代码输入无误之后,点【文件-另存为】,在弹出的窗口中选择【保存类型】为“所有文件”(此操作非常重要),【文件名称】为“C盘瘦身.bat”,选择保存位置为桌面。