Adobe air related query ! Help ?
Hi guyz i have 2 questions related to adobe air.

1. I have managed to call AIR application from flex application using 

   airSWF.launchApplication(appID, pubID, arguments);

.Is there a way to stop the application from flex ?? i.e from web browser ?

2. I have 2 dos commands separated by && which executed perfectly from cmd prompt. How can i execute the same from AIR application.Will approach like calling batch file from flex application work? I tried the following approach 

and code is 

    var startupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
    startupInfo.executable = new File("C:/Program Files/VideoLAN/VLC/vlc.exe");
    var processArgs:Vector.<String> = new Vector.<String>();
    processArgs.push("screen://");
    processArgs.push(":one-instance");
    processArgs.push("-I");
    var p:NativeProcess = new NativeProcess();
    p = new NativeProcess();
    p.start(startupInfo);

but i am getting 
The NativeProcess could not be started. 'Not supported in current profile.' error. Any help ??


Adobe air related query ! Help ?
===

Hi guyz i have 2 questions related to adobe air.

1. I have managed to call AIR application from flex application using 

   airSWF.launchApplication(appID, pubID, arguments);

.Is there a way to stop the application from flex ?? i.e from web browser ?

2. I have 2 dos commands separated by && which executed perfectly from cmd prompt. How can i execute the same from AIR application.Will approach like calling batch file from flex application work? I tried the following approach 

and code is 

    var startupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
    startupInfo.executable = new File("C:/Program Files/VideoLAN/VLC/vlc.exe");
    var processArgs:Vector.<String> = new Vector.<String>();
    processArgs.push("screen://");
    processArgs.push(":one-instance");
    processArgs.push("-I");
    var p:NativeProcess = new NativeProcess();
    p = new NativeProcess();
    p.start(startupInfo);

but i am getting 
The NativeProcess could not be started. 'Not supported in current profile.' error. Any help ??

