1

I've a problem with my EXE file, generated by Matlab Development tool. Pratically, even choosing "Windows StandAlone Mode", when I run the EXE, always appears the hated black CMD console.

How can I avoid this apparition?

Thanks for the help to everyone who Try...

1 Answers1

0

There is a utility published on the Mathworks website that does just that. http://www.mathworks.com/matlabcentral/fileexchange/3909-suppress-command-window

Another solution would be to use another application to launch your MATLAB exe silently.

In C# for example you could start your MATLAB exe with the following arguments to hide the console window:

var process = new Process();
process.StartInfo.FileName = "path to your exe"
process.StartInfo.CreateNoWindow = true;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;

// ...

process.Start();
dee-see
  • 23,668
  • 5
  • 58
  • 91
  • In C# I am glad to never have to do that again. We completely switched over to [ILNumerics](http://ilnumerics.net) ;) – user492238 Aug 17 '14 at 05:21
  • @user492238 ILNumerics is nice but it can't replace all the MATLAB toolboxes, unfortunately. – dee-see Aug 18 '14 at 13:49