MS DOS 批处理文件

来源:百度知道 编辑:UC知道 时间:2024/05/08 15:47:59
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\*.*"

这上面的批处理文件中的 /f /s /q指令是什么意思?每一项删除的是什么东西?后缀名的意思 !
请解答```谢谢!!

这是执行DEL命令的参数.

各参数含意如下:

/F: 强制删除只读文件。
/S: 删除所有包含子目录指定文件。
/Q: 删除时,不需要确认。

/F 强制删除只读文件。
/S 从所有子目录删除指定文件。
/Q 安静模式。删除全局通配符时,不要求确认。