title: Flex 3.5 and Air 2.0 beta 2: Opening a *.cmd file
body: <p>Using Adobe Air 2.0 beta 2 I want to open a cmd file when the user clicks on a button, but I get <code>"Error #3001: File or directory access denied"</code>.</p>
  
  <p>the code:</p>
  
  <pre><code>&lt;mx:Button width="200" height="50" click="OpenFileHandler()"/&gt;
  
  &lt;mx:Script&gt;
  
  private function OpenFileHandler():void
  {
     var file:File = new File("C:\\OpenIE.cmd");
     file.openWithDefaultApplication();
  }
  </code></pre>
  
  <p>The directory it's accessible and the file exist. Does adobe Air 2.0 beta 2 have a restriction when opening a cmd file?</p>