在程序中找到附件
在附件中选择记事本
将以下文本粘贴到文本中@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%\小甜饼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 系统清理LJ完成! echo. & pause
选文件--另存为,如图注:文件名自编,但后缀必须携带.bat 保存类型选择所有文件
保存到桌面后,文件就变成了如图
很多卫士清理软件垃圾的方法与此相同,我们可以根据自己的情况,去编写这样的程序,此例就算是一个模板