Filter löschen
Filter löschen

"The handle is invalid" when running an exe

12 Ansichten (letzte 30 Tage)
KAE am 29 Okt. 2019
Bearbeitet: KAE am 30 Okt. 2019
I would like to run an executable from the Matlab command line. However when I try
I get the error,
Unhandled Exception: System.IO.IOException: The handle is invalid.
When MyProgram.exe is run from the Windows command line, it opens a GUI that you enter commands into.
Any suggestions on what is going wrong here?

Akzeptierte Antwort

KAE am 30 Okt. 2019
Bearbeitet: KAE am 30 Okt. 2019
Passing along the solution from here in case it helps someone: Due to the popup window that the exe generates, I needed to add an & at the end,
system('MyProgram.exe &')
Then it works fine!

Weitere Antworten (0)


Mehr zu Programming Utilities 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