title: Running .exe from Javascript
body: <p>I am trying to run a .exe file from Javascript. This is what I have:</p>
  <pre><code>var   oShell = new
  ActiveXObject(&quot;Shell.Application&quot;);  
  var commandtoRun = &quot;C:\Documents and
  Settings\User\Desktop\ABCD.exe&quot;;
  oShell.ShellExecute(commandtoRun,&quot;&quot;,&quot;&quot;,&quot;open&quot;,&quot;1&quot;);
  </code></pre>
  <p>If I have only the first 2 lines code it seems to work fine (it asked me do I want activeX when I opened it first time in IE) but if I add the last line (ShellExecute) there seems to be an error. I want to pass arguments to the exe.</p>
  <p>Does anyone know how to do it ?</p>