Run multiple exe at same time

9 次查看(过去 30 天)
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 个评论
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 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Simulink Environment Customization 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by