Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想运行一个批处理(.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.
假设只有一个目录(没有子目录):del *.pdf
http://ss64.com/nt/
使用 /q 和 DEL 命令。