title: Launch EXE (Serproxy) with Adobe AIR
body: <p>I'm developing an AIR application in Flash Builder (Flex) and I needed the option to communicate with a serial port on the computer. So I'm using <a href="http://www.lspace.nildram.co.uk/freeware.html" rel="nofollow">Serproxy</a> to help me with that.</p>
  
  <p>I want to be able to launch serproxy.exe when my application runs. I've tried two methods, and neither of them are working for me.</p>
  
  <p>I have set supportedProfiles with extendedDesktop.</p>
  
  <hr>
  
  <p>First method:</p>
  
  <pre><code>var file:File = File.applicationDirectory.resolvePath("assets/serproxy.exe");
  file.openWithDefaultApplication();
  </code></pre>
  
  <p>This proceeds to open the program, but then immediately closes it. No errors are thrown.</p>
  
  <hr>
  
  <p>Second method:</p>
  
  <pre><code>var file:File = File.applicationDirectory.resolvePath("assets/serproxy.exe");
  
  var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
  nativeProcessStartupInfo.executable = file;
  var process:NativeProcess = new NativeProcess();
  
  process.start(nativeProcessStartupInfo);
  </code></pre>
  
  <p>Although through research this method has been found to work, it simply does nothing for me. No errors are thrown, and no program is launched.</p>
  
  <hr>
  
  <p>If anyone has any ideas please let me know! Thanks</p>