Hi there, I would like to launch a .bat file from matlab at the bat file direcetry

조회 수: 5 (최근 30일)
I am using the following commands:
system('.\VFPSolver\runvfph.bat &'); and it works, but point to the matlab directory. I would like to let Matlab execute bat file at the bat file directory. Any suggestions?

채택된 답변

Jan
Jan 2018년 10월 31일
편집: Jan 2018년 10월 31일
Maybe you mean.
cd('.\VFPSolver\');
system('runvfph.bat &');
  댓글 수: 2
Davide Di Pasquale
Davide Di Pasquale 2018년 10월 31일
Thanks, but when the bat file (inside there is an executable) finish running, it generates same files that I would like to copy on a Folder. But using the command inside the matlab script: copyfile *.force Outputs I got an error Error in run_solver (line 7) copyfile *.force Outputs because of course the excutable did not finish yet. How to say matlab to wait until the run is completed?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

제품


릴리스

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by