disable command window opening when executing external programs
조회 수: 9 (최근 30일)
이전 댓글 표시
Hi!
I am trying to run an external program using "! program.exe inputfile.txt -I" command in none-interactive mode. When the program is executed, the dos command window is opened. It displays some info about the program.exe and is closed.
Is there any option to disable opening of the DOS command window from MATLAB? The displaying of the command window slows the whole execution and is very agnoimg.
Thanks for any response
댓글 수: 0
답변 (1개)
Jason Ross
2012년 3월 27일
Try using
system('program.exe inputfile.txt 1 > NUL 2 > NUL')
or
system('program.exe inputfile.txt -I &')
Also note that with system you can get return codes and exit status.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Debugging and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!