我希望此脚本列出文件夹名称中包含"已删除"的所有文件夹,但如果它们位于名为"done"的文件夹中则不会.
例如:列出文件夹,如果它在C:\temp,如果它在,C:\temp\random_folder_name但不是没有,如果它在C:\temp\done
C:\temp
C:\temp\random_folder_name
C:\temp\done
dir /s "C:\temp" | findstr "\deleted"
简短的故事,排除所有名为"完成"的文件夹及其内容.
directory list batch-file dir
batch-file ×1
dir ×1
directory ×1
list ×1