나는 일부 파일을 처리하기 위해 쓴 matlab 함수를 호출하는 배치 스크립트를 작성하고있다. 더 간단한 경우에는 잘 작동하지만/for 및 r 그것이 내가 아마 내가 놓친 거지 간단한 것을 알고 그 선이 지금 같은 오류가 시작 명령 가리키는 주석하지만 난 내 실수를 알아낼 수 없습니다 나에게배치 스크립트가/r 루프를 추가 한 후 작동을 멈춘다
The syntax of the command is in correct pointing to the first line calling the matlab
을주고 매개 변수를 전달
C:\Cygwin64\bin\bash "/cygdrive/f/database/sfs1.sh" &
for /r F:\database\trimmed %%A in (*.txt) do (
echo %%~dpnxA
matlab /nosplash /minimize /nodesktop /r "editEnergyfile('%%~dpnxA')";quit &
:loop
tasklist /fi "imagename eq matlab.exe" | C:\windows\system32\find /i /n ":" > nul
if errorlevel 1 goto loop
start "" /b /wait /separate proc_eng_track.exe "%%~dpnA" &
matlab /nosplash /minimize /nodesktop /r "Sail_speechrate('%%~dpnA')";quit
)
두 개를 제거해야합니다. & – mhmsa
수정 된 명령을 답으로 게시 할 수 있습니까? – Shai