0
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?

Tunaki
  • 132,869
  • 46
  • 340
  • 423
Rıdvan Çetin
  • 183
  • 5
  • 16

1 Answers1

0

add another findto your %S%:

|find /v /i "sample"
Stephan
  • 53,940
  • 10
  • 58
  • 91