if you want convert everything flac file in folders and subfolders recursively add the /r to the for loop command like so:
for /r %%a in (".flac") do ffmpeg -i "%%a" -acodec alac "%%a.m4a" -map_metadata input.flac:output.m4a
The only problem i have with this is that filenames come out like
I have no idea how to fix that at the end, but from what I've seen it doesn't HURT the file to be named this way.
EDIT: Replacing the output code with
so that the full code looks like
for /r %%a in (".flac") do ffmpeg -i "%%a" -acodec alac "%%~na.m4a" -map_metadata input.flac:output.m4a
WILL make file names look like
BUT will save the converted copies to the ROOT of the folder you have the command run.
To clarify flac file is located in
alac file will save to