I have a regular process that involves generating video files and then extracting the audio from them. I found this Windows batch file online and made some very minor modifications:
@echo off
for %%a in (*.mp4) do (
echo Converting "%%a" ...
ffmpeg -i "%%a" -q:a 0 -map a "%%~na.mp3"
)
echo Finished!
I save that as convert_to_audio.bat, place it in the directory with the video files, and then run the batch file from the command line.