2 Replies Latest reply on Apr 6, 2015 2:47 PM by EMorales47

    Launch App with Native Process

    Yue_Hong Level 1

      Hi,

       

      I want to launch serproxy application (http://www.lspace.nildram.co.uk/freeware.html) using native process in adobe air. But it seems not working.

       

      Here is my code:

       

      protected function launchSerproxy():void{
          if(NativeProcess.isSupported){
           var serproxy:File = File.applicationDirectory;
           serproxy = serproxy.resolvePath("serproxy/serproxy.exe");
          
           var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
           nativeProcessStartupInfo.executable = serproxy;
           var process:NativeProcess = new NativeProcess();
          
           process.start(nativeProcessStartupInfo);
          
           // connect to the com port
           setTimeout(connect,1500,"127.0.0.1",5339);
          
          }
         }

       

      Flex did not return any error or problem on runtime. What should I do to have Adobe Air load and run serproxy? Thanks.