フィルターのクリア

Run multiple exe at same time

9 ビュー (過去 30 日間)
xiaohuo
xiaohuo 2022 年 2 月 21 日
コメント済み: xiaohuo 2022 年 3 月 10 日
Dear all,
I would like to know if MATLAB is able to run the multiple exe simultaneously. If yes, how to run it?

採用された回答

Voss
Voss 2022 年 2 月 21 日
Yes, you can use "&" to return control to MATLAB immediately after the exe starts. Then you can immediately run an exe again. For instance:
!excel.exe &
!excel.exe &
That would start two instances of Excel.
  5 件のコメント
Walter Roberson
Walter Roberson 2022 年 3 月 2 日
system(strjoin({cmd_H01, cmd_H02}, ';'))
xiaohuo
xiaohuo 2022 年 3 月 2 日
system([cmd01,'&',cmd02]);
This works well!
Thanks!

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 2 月 21 日
As .exe are specific to Windows, you could consider using .NET System.Diagonstics.Process to create the processes and control them.
  3 件のコメント
xiaohuo
xiaohuo 2022 年 3 月 10 日
Thanks.

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

カテゴリ

Help Center および File ExchangeSimulink Environment Customization についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by