- @echo off&setlocal enabledelayedexpansion
- set "file=D:\"
- set "file1=c:\ffmpeg.exe"
- xcopy /s/t/y "%1" "!file!2012\"
- for /f "delims=" %%a in ('dir /s/b/a-d "%1"') do (
- echo.正在转换的文件:%%a
- set str=%%a
- set var=!str:*\=!
- set num=!var:.wav=!
- echo.转换后的文件:!file!!num!.mp3
- echo.Y|!file1! -i "%%a" -ab 32k -ar 8000 "!file!!num!.mp3"
- )
- cls&echo.________________转换完成!
- pause>nul
复制代码
|