title: How can I run a local Windows Application and have the output be piped into the Browser
body: <p>I have Windows Application (.EXE file is written in C and built with MS-Visual Studio), that outputs ASCII text to stdout.  I’m looking to enhance the ASCII text to include limited HTML with a few links.   I’d like to invoke this application (.EXE File) and take the output of that application and pipe it into a Browser.   This is not a one time thing, each new web page would be another run of the Local Application!</p>
  
  <p>The HTML/java-script application below has worked for me to execute the application, but the output has gone into a DOS Box windows and not to pipe it into the Browser.    I’d like to update this HTML Application to enable the Browser to capture that text (that is enhanced with HTML) and display it with the browser. </p>
  
  <pre><code>&lt;body&gt;
   &lt;script&gt;
   function go() {
     w = new ActiveXObject("WScript.Shell");
     w.run('C:/DL/Browser/mk_html.exe');
     return true;
     }
  
   &lt;/script&gt;
  
   &lt;form&gt;
     Run My Application (Window with explorer only)
       &lt;input type="button" value="Go" 
       onClick="return go()"&gt;
  &lt;/FORM&gt;
  
  &lt;/body&gt;
  </code></pre>