setlocal
set "s=DIR C:\Folder /S /Q^|FIND /i "Owner" ^|findstr /m /i "\.mkv$""
for /f "Tokens=5,6*" %%a in ('%s%') do >>%tmp%\list.txt echo %%a %%b %%c

This code lists mkv files owned by OWNER in lists.txt But I want to exclude some strings. For example if mkv's name has "sample" in it I don't want to list it.

I couldn't get through this. I come to a deadend. Is it possible to do that? If it is how?

有帮助吗?

解决方案

add another findto your %S%:

|find /v /i "sample"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top