0 Replies Latest reply on Aug 1, 2011 2:24 PM by socalfish

    Trying to launch external exe in AIR

    socalfish Level 1

      I have an external app that I need to launch from my Flash AIR app. One user had the following but for some reason it does nothing for me. From what I have read this is one way to go about it. Can anyone point me in the right direction. I can have it either on the root or in a sub folder. Below is the file on the root of the AIR course. Tried using fscommand and that didn't work either.



      var myApp:File = File.applicationDirectory.resolvePath("Hazards.exe");
      var myAppProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
      var myAppProcess = new NativeProcess();

      myAppProcessStartupInfo.executable = myApp;



      Just want to run a external app.