【发布时间】:2014-04-07 14:35:07
【问题描述】:
我需要找到所有 * .avi 文件(即使在子文件夹中)。但我想排除具有特定名称部分的文件(* demux.avi)。像这样的:
FOR /R %%g IN (*.avi) DO (
if "%%g"=="*demux.avi" ( - THIS PART IS WRONG
echo "%%g" excluded
) else (
echo "%%g"
)
)
我期待结果:
file1.avi
排除 file1 demux.avi
文件 2.avi
**
【问题讨论】:
标签: batch-file for-loop filenames