都忘了从哪里扒过来的。 写得挺好的。
@ECHO OFF FOR /R %%G IN (*.aac) DO (CALL :SUB_VLC "%%G") rem 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 "ffmpeg.exe" -i %1 -b:a 128K -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