문제

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