How to use "dos" command in matlab!

3 次查看(过去 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 CenterFile Exchange 中查找有关 Verification, Validation, and Test 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by