for /f "delims=?" %%i in ('dir /b /a /s /o:d "d:\JD\*.avi" "d:\*.mkv"') do @echo %%~ni>>"D:\meineNEUEliste.txt"