title: A Compiled .exe can't find input file
body: <p>I have a compiled c code into .exe and can successfully execute the .exe in different locations by double clicking on it. </p>
  
  <p>I am trying to use SAS to execute the .exe. There is error msg saying that the input file can't be found so .exe wasn't able to be executed appropriately. </p>
  
  <p>I used Visual Studio to compile the c code. I am guessing it has something to do with how the code was compiled (such as the default directory where all the source and header files, and the input the file were saved at)? </p>
  
  <p>Anyone can give me some ideas as for debugging and fixing the issue?</p>
  
  <p>The SAS code used to call the .exe is pasted below and so is the error msg. </p>
  
  <pre><code>    x '"C:\Users\Gfish\Documents\Visual Studio 2010\Projects\M\Debug\M.exe"';
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/aqCBq.png" rel="nofollow noreferrer">error image</a>
  Many thanks!!</p>
  
  <p>Gfish</p>
  
  <p>The error msg in SAS after calling the .exe again using infile and pipe is attached as well (i.e., error2)<a href="https://i.stack.imgur.com/OPbRz.png" rel="nofollow noreferrer">enter image description here</a></p>