Nahid Ahmadi
Nahid Ahmadi

Reputation: 19

make an exe file from a gui that runs another exe file

I am trying to make an executable file from my GUI using deploytool. I already did this work and all things was ok, but this time , in my GUI , I have a line similar to this: dos(['Runner ' fileName]); that Runner is an exe file. I added all needed files and also Runner.exe to Shared Resources Files of deploytool. now when I make an exe file from my GUI and run it , mentioned line of code does not run , that is Runner does not run.

Upvotes: 1

Views: 306

Answers (1)

Realhermit
Realhermit

Reputation: 425

Add the additional required file as an archive file.

Use the -a switch.

Compile the file from the command line.

So your command should look something like this:

mcc -m (yourfile.m) -a (the_additional_exe_file)

You can find more information here: https://www.mathworks.com/help/mps/ml_code/mcc.html

Upvotes: 1

Related Questions