Recursively Check MKV with ffprobe
/D is for processing directories, not contents of directories.

for /r D:\Video\TEST %%a in (*.mkv) do (
  if "%%~nxa" neq "trailer.mkv" ffprobe.exe -i "%%a" -hide_banner 2&gt;&gt; results.txt )