瑞星卡卡安全论坛

首页 » 技术交流区 » 系统软件 » 请问这两个批处理文件哪里不同
我是大大山 - 2008-9-20 19:26:00
最近系统很慢,找了两个批处理文件,一个是
@echo off
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%\inf\*.pnf
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\$nt*
del /f /s /q %windir%\ServicePackFiles\*.*
del /f /s /q %windir%\SoftwareDistribution\download\*.*
del /f /s /q %windir%\ModemLog_Motorola*.txt
del /f /q %systemdrive%\recycled\*.*
del /f /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
rd /s /q %temp% & md %temp%
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /q %userprofile%\Local Settings\History\*.*
rd /s /q %userprofile%\Local Settings\Temporary Internet Files
rd /s /q c:\temp & md c:\temp
echo & exit
echo 清理系统垃圾完成
echo. & pause

另一个是
@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 清除系统LJ完成!
echo. & pause

用户系统信息:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
wlj13569 - 2008-9-20 21:35:00
大致一样 其原理都是删除一些垃圾文件,建议使用超级兔子清理
最爱阿财 - 2008-9-20 23:29:00
lz可以对比一下删除文件的不同。
pnf文件是系统启动时加载的一些配置文件
SoftwareDistribution里面是系统的自动更新文件 例如download是下载补丁
ServicePackFiles是系统从各个版本升级后的备份文件 比如从sp1到sp2  添加删除组件时也会用到它
其他的就是些临时文件 上网记录之类的东东了
warmguy - 2008-9-20 23:32:00
第一个比第二个多一点,其他的都一样,可以再参考参考3楼的。
1
查看完整版本: 请问这两个批处理文件哪里不同