
循環內是否可以有多個管道指令?
:: ------file(filter.txt) with contents which should be filtered---------
.mp3
.mp4
.wav
.jpg
.png
:: --------------------------------------------------------------
我想過濾包含 filter.txt 中的字串的所有文件,例如:
dir /a:-d /b | find /v ".mp3" | find /v ".mp4" | find /v ".wav" | find /v ".jpg" | find /v ".png"
重點是我的條目比本範例中顯示的要多得多,我想將其放入 for 循環中,但這對我不起作用
for /f "tokens=* delims=;" %%a in (filter.txt) do (| find /v "%a)