title: Running Batch file using Javascript - Firefox
body: <p>This is important for me as I have a PRN file which can be printed only through command prompt. And I want to delete that file after the print command is given.</p>
  
  <p>So these 2 commands can be executed using batch file only.</p>
  
  <p>And when I try to use activexobject in javascript, my firefox browsers doesnt run it.</p>
  
  <pre><code>&lt;script&gt;
  MyObject = new ActiveXObject("WScript.Shell");
  function Runbat()
  {
  MyObject.Run("\"D:\\abc.bat\"");
  }
  &lt;/script&gt;
  </code></pre>