title: How to run .exe file from matlab
body: <p>I got a .exe file complied by Fortran, which is for converting one format to another one. I have to run it lots of times and each time with different input.  I could able to run the exe file with below script</p>
  
  <pre><code>command=('C:\Program Files\Director2.exe &lt; O:\Free\1.dat');
  system(command);
  </code></pre>
  
  <p>until now every thing is fine but when the GUI is comes up plus input data, I should chose the format and new directory for saving the conversion. I would like to know, is there any way to do that? Indeed I don't wanna use java.awt.Robot class which is not work for me <a href="http://undocumentedmatlab.com/blog/gui-automation-robot/" rel="nofollow">(GUI automation using a Robot)</a>.
  Also I have check this post, which has not been helpful.
  <a href="http://www.mathworks.com/matlabcentral/newsreader/view_thread/241352" rel="nofollow">(How to run .exe file from matlab)</a></p>
  
  <p>Thanks in advance,</p>