鉴定一下程序

来源:百度知道 编辑:UC知道 时间:2024/05/31 12:54:09
请帮我鉴定一下这个程序的确切用处和是否存在危害。
文件用记事本创建,保存的后缀名一定要是.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\*.*"

ec

有一点危害吧,这是一个经常出现在网上各个地方的LJ清除批处理文件运Window
s环境下的C盘提示符即CMD。它清除如tmp(临时文件);log(日志文件
);bak(备份文件)......等等。上面的东西虽然是无用的东西,但这个东西也
在欲火难耐的情况下干掉你的某个引导文件,然后导致开机不行,所以我建议你
少用,其实这些是一些DOS命令而已,有时间学习一下也是好的。

没危害
清理临时文件的