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일

0 개 추천

dos ('sumo-gui -c szenario.sumo.cfg') this should do in my opinion, provided path of sumo is in the windows path.

댓글 수: 3

ES
ES 2013년 10월 7일
by the way, what is the first line, status = dos('C:\Windows\system32\cmd.exe'); doing in your code?
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개)

카테고리

도움말 센터File Exchange에서 Performance and Memory에 대해 자세히 알아보기

태그

질문:

2013년 10월 7일

댓글:

ES
2013년 10월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by