문제

I am trying to make a batch file for SoX, and I have the standard command line code working...

sox.exe -V test-input-file.wav -e u-law -r 8000 -c 1 test-output-file.wav

Here is the batch file I have created...

cd %~dp0
mkdir converted
FOR %%A IN (%*) DO sox %%A "converted/%%~nxA" -e u-law -r 8000 -c 1
pause

Any ideas where I am going wrong?

Thanks!

도움이 되었습니까?

해결책

Assuming your initial batch command worked, see if this changes anything:

@echo off
cd /d "%~dp0"
mkdir converted 2>nul
FOR %%A IN (*.wav) DO sox.exe -V "%%A" -e u-law -r 8000 -c 1 "converted\%%~nxA"
pause
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top