我想运行一个批处理(.bat包含DOS命令),通过删除任何仍然存在的pdf来清理我的文件夹。你是怎么做到的?
del *.pdf /q
解释:
del -- Dos command to delete files
*.pdf -- all files with the .PDF extension in the current directory
/q -- Don't ask for confirmation.
假设只有一个目录(没有子目录):德尔 *.pdf
http://ss64.com/nt/
使用/q 和 DEL 命令。