MATLAB Answers

Compile a .EXE into program and launch?

6 views (last 30 days)
Matt
Matt on 3 Feb 2017
Answered: Matt on 3 Mar 2017
Hi all,
I have developed a piece of software, for which the user may occasionally need a separate standalone .EXE.
I have compiled it into the program using DeployTool, but I am unsure how to launch it in my code? I've created a menu entry for it, but i'm not sure what function to use to execute it.
Thanks,
Matt

  1 Comment

Matt
Matt on 13 Feb 2017
Does anybody have any more suggestions? I can't figure this one out.

Sign in to comment.

Accepted Answer

Matt
Matt on 3 Mar 2017
I have just found the winopen function.
This works well, I can launch a PDF or EXE.

  0 Comments

Sign in to comment.

More Answers (1)

Friedrich
Friedrich on 9 Feb 2017
Hi,
if you want to launch an external application from your MATLAB code you can use system command.

  1 Comment

Matt
Matt on 9 Feb 2017
Hi,
Thank you - unfortunately I have used the system command and it works fine until I compile the program, then it no longer launches the program that is on my computer.
What I really want to do though is compile the standalone EXE I have into my program, so that when my program is installed, the user can run the EXE compiled in from the menu.
Is this possible?
Thanks,
Matt

Sign in to comment.


Translated by