我正在尝试制作执行以下操作的批处理文件:
我已经写了一些测试批处理文件。它尝试执行指定的操作。唯一的问题是,一旦打开bash终端(在同一窗口中),它将不会执行下一行,直到我手动从WSL中“退出”,然后尝试错误地运行“ ./PESQ”行(如它应该是)。
cd C:/users/jesus/desktop/source/audio
::desired path
bash
::this opens up an ubuntu terminal like session inside CMD
./PESQ
::this is the compiled file, besides, there are more arguments that need to be in that line, (+16000 speech.wav speech_bab_0dB.wav)
pause
运行代码时,我得到以下输出
C:\Users\jesus\Desktop\source\audio>bash
jesusb@LAPTOP-08IGLCO1:/mnt/c/Users/jesus/Desktop/source/audio$
一旦我输入exit
,我将得到以下输出
C:\Users\jesus\Desktop\source\audio>./PESQ
'.' is not recognized as an internal or external command, operable program or batch file.
C:\Users\jesus\Desktop\source\audio>pause
Press any key to continue . . .`
如何将./PESQ +16000 speech.wav speech_bab_0dB.wav
命令传递给bash终端?
答案 0 :(得分:0)
在批处理文件中使用bash
命令,而不使用wsl
:
wsl ./PESQ +16000 speech.wav speech_bab_0dB.wav