编一个小小的程序

来源:百度知道 编辑:UC知道 时间:2024/05/11 17:55:52
就是编一个小小的程序产生一个图标在桌面上,然后双击它就可以自动清理电脑上的临时文件
如果谁知道请帮我写一下

@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 %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\*.*"
del /f /s /q "%TEMP%\*.*"
del c:\windows\installer\*.msi
del /f /s /q c:\windows\softwareDistribution\download\*.*
echo 清除系统垃圾完成!

复制上面的文字到记事本,保存为.BAT格式