Filter löschen
Filter löschen

Run multiple exe at same time

9 Ansichten (letzte 30 Tage)
xiaohuo
xiaohuo am 21 Feb. 2022
Kommentiert: xiaohuo am 10 Mär. 2022
Dear all,
I would like to know if MATLAB is able to run the multiple exe simultaneously. If yes, how to run it?

Akzeptierte Antwort

Voss
Voss am 21 Feb. 2022
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 Kommentare
Walter Roberson
Walter Roberson am 2 Mär. 2022
system(strjoin({cmd_H01, cmd_H02}, ';'))
xiaohuo
xiaohuo am 2 Mär. 2022
system([cmd01,'&',cmd02]);
This works well!
Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 21 Feb. 2022
As .exe are specific to Windows, you could consider using .NET System.Diagonstics.Process to create the processes and control them.
  3 Kommentare
xiaohuo
xiaohuo am 10 Mär. 2022
Thanks.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink Environment Customization finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by