记事本
右击桌面,新建一个文本文档。
复制下面的代码到文本文档。推荐复制,不要自己打。@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%\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 系统垃圾清除完毕!echo. & pause以上为复制内容:del /f /q %userprofile%\cookies\*.*这一行为清理表单及登录密码如果不想清理可以删掉。
菜单栏“文件”选择另存为。
先选择桌面,文件名为“清理垃圾LJ.bat',保存类型为:”所有文件“。
制作完成之后,就是这样。
双击打开,开始清理垃圾。
清理之后按任意键结束清理。
文件名的后缀为.bat