此批处理命令删除文件,而不是目录。
DEL - 语法
del [filename]
DEL - 示例
以下示例显示了 del 命令的不同变体。
@echo off Rem Deletes the file lists.txt in C:\ del C:\lists.txt Rem Deletes all files recursively in all nested directories del /s *.txt Rem Deletes all files recursively in all nested directories , but asks for the confirmation from the user first Del /p /s *.txt
所有操作均按照批处理文件中的备注执行。