Not having FB now so can't debug but make instance of NativeProcess
and add all handlers for NativeProcess event
 as shown in referred URL, I am sure you will get to know the problem.

On May 24, 5:03 pm, Kronos <utkars...@gmail.com> wrote:
> Hi,
>
> I have been trying to launch a batch file from my Adobe AIR
> application. I have followed the code sample provided in this 
> linkhttp://forums.adobe.com/thread/662058?decorator=print&displayFullThre...
> However my code does not invoke the batch file while the author of the
> post claims his does.
> Here's a sample of my code.
>
> var executable:File = new File("C:\\WINDOWS\\system32\\cmd.exe");
> var bat:File = new File("D:\\Utkarsh\\Hello.bat");
>
> var nativeProcess:NativeProcess = new NativeProcess();
>
> if (NativeProcess.isSupported)
> {
>           trace("Native Process Supported");
>
> }
>
> var args:Vector.<String> = new Vector.<String>();
> args.push("/c",bat.nativePath);
>
> var nativeProcessStartupInfo:NativeProcessStartupInfo = new
> NativeProcessStartupInfo();
>
> nativeProcessStartupInfo.executable = executable;
> nativeProcessStartupInfo.arguments = args;
>
> nativeProcess.addEventListener(NativeProcessExitEvent.EXIT,
> onExitError );

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com.
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to