SET PATH=%PATH%;D:\Program Files\ffmpeg-2021-01-24-git-1775688292-full_build\bin; @echo off mkdir WAV for %%f in (*.*) do ( echo "%%f" echo "WAV\%%~nf.mp3" ffmpeg -i "%%f" -acodec pcm_s16le -ar 44100 "WAV\%%~nf.wav" )