Do not open shell when running system

조회 수: 3 (최근 30일)
ChrizzzlP
ChrizzzlP 2020년 5월 7일
댓글: ChrizzzlP 2020년 5월 8일
Hi all,
I am running an optimization which uses an external program (Nastran) in its function evaluation.
I use the system() function to run nastran.
Everything runs fine but a windows shell pops up everytime, which is rather annoying since this is my only computer I can work on and the new window stops me from being able to type in my webbrowser (e.g. here) or any other place every 15seconds and I have to keep clicking the point where I was to continue..
Is there a way to make the shell run in the background so I can continue using my computer?
I've tried using the other ways I know to run external programs but ! and dos() basically have the same function as system() so that ofcourse doesn't help..
  댓글 수: 5
Michael Soskind
Michael Soskind 2020년 5월 7일
So there is /b for background, and /min for minimized. Maybe you would be interested in using /min instead
ChrizzzlP
ChrizzzlP 2020년 5월 8일
Unfortunately minimizing does not prevent the take-over and I still cannot continue typing normally

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by