关批处理命令

来源:百度知道 编辑:UC知道 时间:2024/06/03 14:33:34
这是一个批处理清除命令,有人帮我说明一下每一句的意思吗?
@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

@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp ----删除C盘所有目录里的.tmp文件
del /f /s /q %systemdrive%\*._mp ----删除C盘所有目录里的._mp文件
del /f /s /q %systemdrive%\*.log ----删除C盘所有目录里的.log文件
del /f /s /q %systemdrive%\*.gid ----删除C盘所有目录里的.gid文件
del /f /s /q %systemdrive%\*.chk ----删除C盘所有目录里的.chk文件
del /f /s /q %systemdrive%\*.old ----删除C盘所有目录里的.old文件
del /f /s /q %systemdrive%\recycled\*.* -------清空C盘里的回收站里的东西
del /f /s /q %windir%\*.bak ---删除C:\windows下的所有.bak文件
del /f /s /q %windir%\prefetch\*.* ---删除C:\windows\prefetch\下的所有文件
rd /s /q %windir%\temp & md %windir%\temp --清空C:\windows\temp文件夹
del /f /q %userprofile%\cookies\*.* --清空当前用户目录的cookies\文件夹
del /f /q %userprofile%\recent\*.* --清空当前用户目录的recent\文件夹

del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*&qu