@echo off IF EXIST w:\jcss\minfo.txt del w:\jcss\minfo.txt SET location=%~1 ECHO Probing for avi, wmv, mpg, mp4, mkv and flv FOR /f "delims=|" %%f in ('dir /b %location%\*.avi') DO ffprobe -v quiet -print_format xml -show_format -show_streams "%location%\%%f" >>w:\jcss\minfo.txt 2>&1 FOR /f "delims=|" %%f in ('dir /b %location%\*.wmv') DO ffprobe -v quiet -print_format xml -show_format -show_streams "%location%\%%f" >>w:\jcss\minfo.txt 2>&1 FOR /f "delims=|" %%f in ('dir /b %location%\*.mpg') DO ffprobe -v quiet -print_format xml -show_format -show_streams "%location%\%%f" >>w:\jcss\minfo.txt 2>&1 FOR /f "delims=|" %%f in ('dir /b %location%\*.mp4') DO ffprobe -v quiet -print_format xml -show_format -show_streams "%location%\%%f" >>w:\jcss\minfo.txt 2>&1 FOR /f "delims=|" %%f in ('dir /b %location%\*.mkv') DO ffprobe -v quiet -print_format xml -show_format -show_streams "%location%\%%f" >>w:\jcss\minfo.txt 2>&1 FOR /f "delims=|" %%f in ('dir /b %location%\*.flv') DO ffprobe -v quiet -print_format xml -show_format -show_streams "%location%\%%f" >>w:\jcss\minfo.txt 2>&1 ECHO File minfo.txt created PAUSE