I want to encode a directories structure of Flac albums to MP3.
There are a lot of albums into seperates folders all in one root folder.
I have found this script
but it creates the directories in destination folder but it puts the converted files at the root of the destination folder, not in the created subfolders.
Code: Select all
@echo off REM keep a counter for files converted set /A nfile=0 REM do not copy empty folders or any files @echo Copying directory structure from %0 to %1 ... xcopy /T %1 %2 REM walk directory structure and convert each file in quiet mode for /R %1 %%v in (*.mp4, *.aac, *.flv, *.m4a, *.mp3) do ( echo converting "%%~nxv" ... ffmpeg -v quiet -i "%%v" "%2\%%~nv.mp3" set /A nfile+=1 ) echo Done! Converted %nfile% file(s)
How can I fix this?