フィルターのクリア

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

10 ビュー (過去 30 日間)
Davide Di Pasquale
Davide Di Pasquale 2018 年 10 月 31 日
コメント済み: Jan 2018 年 11 月 5 日
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?
Jan
Jan 2018 年 11 月 5 日
Omit the "&"

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

タグ

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by