title: Running Exe in Firefox why do I get an error
body: <p>I run this in Firefox, when clicking on link, Firefox says NS_ERROR_FILE_UNRECOGNIZED_PATH wheread I followed the instruction from here <a href="https://stackoverflow.com/questions/6177583/how-to-open-exe-with-javascript-xpcom-as-windows-run">How to open .EXE with Javascript/XPCOM as Windows &quot;Run...&quot;?</a></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  function RunExe(path) {
      try {            
          var ua = navigator.userAgent.toLowerCase();
          if (ua.indexOf("msie") != -1) {
              MyObject = new ActiveXObject("WScript.Shell")
              MyObject.Run(path);
          } else {
              netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
  
              var exe = window.Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile);
              exe.initWithPath(path);
              var run = window.Components.classes['@mozilla.org/process/util;1'].createInstance(Components.interfaces.nsIProcess);
              run.init(exe);
              var parameters = [""];
              run.run(false, parameters, parameters.length);
          }
      } catch (ex) {
          alert(ex.toString());
      }
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;a href="#" onclick="javascript:RunExe('C:\Windows\System32\cmd.exe /c start winword.exe');"&gt;Open Word&lt;/a&gt;
  &lt;/body&gt;
  </code></pre>