title: Run an .exe file with 1 input parameter from MATLAB
body: <p>I have an .exe file developed in C# that is called by Matlab.</p>
  
  <p><code>DirPath = '\\MYSERVER\PARENT_DIR\CHILD DIR\'</code></p>
  
  <p>The old version of my command worked right</p>
  
  <p><strong>without input parameter:</strong>  <code>system( fullfile([DirPath 'NameOfExe']) )</code></p>
  
  <p>The new version which requires an input parameter is failing.  Can you please help me fix it?<br>
  I have tried many versions but the error is always:<br>
  <strong>'\MYSERVER\PARENT_DIR\CHILD' is not recognized as an internal or external command,
  operable program or batch file.</strong></p>
  
  <p><strong>With input parameter, FAIL:</strong> </p>
  
  <pre><code>strcommand = [  '''' fullfile([DirPath 'NameOfExe' ]) ' ' inputparameter '''' ];
  eval(['[a,b]=system(' strcommand ')'])`
  </code></pre>
  
  <p>Correct usage when using CMD:
  (say <code>I:</code> is my mapped drive to <code>MYSERVER</code>, &amp; <code>inputparameter</code> is a path)</p>
  
  <pre><code>myroot:&gt; cd I:
  I:&gt;cd PARENT_DIR\CHILD
  I:\PARENT_DIR\CHILD&gt;NameOfExe "inputparameter"
  </code></pre>