title: HTML and ActiveX launch .exe files from control panel, etc
body: <p>I am trying to launch some .exe files from the windows directory in HTML using activeX, here is the link
  <a href="http://msdn.microsoft.com/en-us/library/cc144191(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/cc144191(VS.85).aspx</a></p>
  
  <p>I know this might sound stupid or something, but I am going to open these HTML via C# web browser tool as it uses the IE engine.</p>
  
  <p>It opens some of the .exe files from the link i provided up. for instance : C:\windows\system32\control.exe , but i try something more sensitive like c:\windows\system32\RecoveryDrive.exe , it simply does not works, i get an error.</p>
  
  <p>Here is the HTML code I use. Thanks!</p>
  
  <pre><code>&lt;body&gt;
  &lt;p&gt;&lt;h1&gt;This is my web page&lt;/h1&gt;&lt;/p&gt;
  &lt;button align="center" type=button onclick="ControlPanel();"&gt;Control Panel&lt;/button&gt;&lt;/p&gt;
  &lt;button align="center" type=button onclick="RecoveryDrive();"&gt;MAGIC&lt;/button&gt;&lt;/p&gt;
  &lt;/body&gt;
  &lt;script type="text/javascript" LANGUAGE="JavaScript"&gt;
      function ControlPanel()
      {
          var ws = new ActiveXObject("WScript.Shell");
          ws.Exec("c:\\windows\\system32\\control.exe");
      }
  &lt;/script&gt;
  &lt;script type="text/javascript" LANGUAGE="JavaScript"&gt;
      function RecoveryDrive()
      {
          var ws = new ActiveXObject("WScript.Shell");
          ws.Exec("c:\\windows\\system32\\RecoveryDrive.exe");
      }
  &lt;/script&gt;
  </code></pre>