SET PATH=%PATH%;D:\Program Files\ffmpeg-2021-01-24-git-1775688292-full_build\bin; @echo off mkdir MP3 for %%f in (*.*) do ( echo "%%f" echo "MP3\%%~nf.mp3" ffmpeg -i "%%f" -codec:a libmp3lame -qscale:a 2 "MP3\%%~nf.mp3" )