Hi,

I have been trying to launch a batch file from my Adobe AIR
application. I have followed the code sample provided in this link
http://forums.adobe.com/thread/662058?decorator=print&displayFullThread=true
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to