title: Alternative for ActiveXObject("WScript.Shell")
body: <p>I am working on javascript project where i want to run shell commands through java script code  , I am able to do it with active x objects using "ActiveXObject("WScript.Shell")" successfully  , how can i do it without acitive x ?  </p>
  
  <p>I am doing opertation something similar to this </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>//inside some function
  var abc=new ActiveXObject("WScript.Shell")
  
  HKEY_Key="header";
  //abc.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"&amp;w");
  HKEY_Key="footer";
  //abc.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key," &amp;b Printed on &amp;d &amp;t &amp;b Page &amp;p of &amp;P");</code></pre>
  </div>
  </div>
  </p>