title: AIR - Batch File As CMD.exe Argument
body: <p>AIR doesn't permit launching .bat files as a native process directly, so apparently i'm suppose to set CMD.exe as my startupInfo executable and pass my .bat file and it's arguments.</p>
  
  <p>i can't get it to work, so i'm hoping it's a syntax problem.  here is my code:</p>
  
  <pre><code>var testStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
  testStartupInfo.executable = new File("C:\\WINDOWS\\system32\\cmd.exe");
  
  var processArguments:Vector.&lt;String&gt; = new Vector.&lt;String&gt;();
  processArguments[0] = "/c";
  processArguments[1] = "\"C:\\Documents and Settings\\Administrator\\Desktop\\Test\\Test.bat\"";
  processArguments[2] = "-testBatPeram1";
  processArguments[3] = "-testBatPeram2";
  processArguments[4] = "Peram3";
  processArguments[5] = "C:\\Documents and Settings\\Administrator\\Desktop\\SaveText.txt";
  
  testStartupInfo.arguments = processArguments;
  
  var test:NativeProcess = new NativeProcess();
  test.start(testStartupInfo);
  </code></pre>
  
  <p>the batch file and its parameters work fine if i manually write them in the command line prompt, so i don't know why nothing is happening when launched from AIR.  </p>