1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| @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_%
CALL "C:\Program Files\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
|