此批处理命令删除文件,而不是目录。
del [filename]
以下示例显示了 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
所有操作均按照批处理文件中的备注执行。
链接:https://www.learnfk.comhttps://www.learnfk.com/batch-script/batch-script-del.html
来源:LearnFk无涯教程网
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
Python实战 · 从0到1搭建直播视频平台 -〔Barry〕