Filter löschen
Filter löschen

Minimize cmd.exe window launched from MATLAB?

10 Ansichten (letzte 30 Tage)
Dominik Mattioli
Dominik Mattioli am 7 Jan. 2020
Kommentiert: dpb am 19 Nov. 2020
I am using a TCP/IP object to have MATLAB communicate with Python in the background. Python needs to be the server, so from MATLAB I call the Python script like so:
!python main.py &
Everything works properly if I do this, except the cmd.exe window is in the middle of the screen (the user interacting with this window is not a good idea).
Is there a way to minimize the cmd.exe window (titled 'C:\WINDOWS\SYSTEM32\cmd.exe' - I can figure out its fid) while keeping the exclamation and ambersand operators in the system call as-is?
  2 Kommentare
Ajay krishna Vasanthakumar
Ajay krishna Vasanthakumar am 19 Nov. 2020
Hello Dominik,
Did you find the answer ?
Thanks
Ajay Krishna
dpb
dpb am 19 Nov. 2020
Did you not read the ANSWER below????

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

dpb
dpb am 7 Jan. 2020
Use a batch file or multiple command on the executable and
START yourbatch /MIN
to create the process minimized. Kick this off with the '&' to detach from MATLAB; the process then must exit on its own when completed, however, or the shell will still be open, just minimized.

Weitere Antworten (0)

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by