制作一个windows垃圾清理小程序

制作一个windows垃圾清理小程序:
把下列代码保存为.bat文件(如垃圾清理.bat)
双击它就能很快地清理垃圾文件,大约一分钟不到。
就是下面的文字(这行不用复制)=======================

@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 清除结束! 
echo. & pause 

感谢 https://blog.csdn.net/qq_43558971/article/details/90705745

你可能感兴趣的:(制作一个windows垃圾清理小程序)