@ECHO OFF FOR /R %%G IN (*.m4a) DO (CALL :SUB_VLC "%%G") FOR /R %%G IN (*.m4a.mp*) DO (CALL :SUB_RENAME "%%G") GOTO :eof :SUB_VLC SET _firstbit=%1 SET _qt=" CALL SET _newnm=%%_firstbit:%_qt%=%% SET _commanm=%_newnm:,=_COMMA_% REM echo %_commanm% CALL "D:\Program Files (x86)\FFmpeg\bin\ffmpeg.exe" -i %1 -b:a 320K -vn "%_commanm%.mp3 GOTO :eof :SUB_RENAME SET _origfnm=%1 SET _endbit=%_origfnm:*.m4a=% CALL SET _newfilenm=%%_origfnm:.m4a%_endbit%=.mp3%% SET _newfilenm=%_newfilenm:_COMMA_=,% COPY %1 %_newfilenm% DEL %1 GOTO :eof :eof