How to use "dos" command in matlab!

4 ビュー (過去 30 日間)
Moritz
Moritz 2013 年 10 月 7 日
コメント済み: ES 2013 年 10 月 7 日
Hello,
i have built a gui who is writing a xml-file for. now i want to start an external program called "sumo" with the windows console.
status = dos('C:\Windows\system32\cmd.exe');
[status, result] = dos ('C:\Windows\system32\cmd.exe','sumo-gui -c szenario.sumo.cfg');
i want that the dos command opens and this "'sumo-gui -c szenario.sumo.cfg'" should be peformed!
but on my way it doesnt work!
Thank you for your help!!

採用された回答

ES
ES 2013 年 10 月 7 日
dos ('sumo-gui -c szenario.sumo.cfg') this should do in my opinion, provided path of sumo is in the windows path.
  3 件のコメント
Moritz
Moritz 2013 年 10 月 7 日
i thought it is important to open the console!
ES
ES 2013 年 10 月 7 日
No need to open the console. 'dos' itself does that if needed. you can just do a dos ('sumo-gui -c szenario.sumo.cfg').

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVerification, Validation, and Test についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by