How can I run a local Windows Application and have the output be piped into the Browser.

Posted by Trey Sherrill on Stack Overflow See other posts from Stack Overflow or by Trey Sherrill
Published on 2010-04-26T19:35:28Z Indexed on 2010/04/26 19:43 UTC
Read the original article Hit count: 379

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!

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.

<body>
 <script>
 function go() {
   w = new ActiveXObject("WScript.Shell");
   w.run('C:/DL/Browser/mk_html.exe');
   return true;
   }

 </script>

 <form>
   Run My Application (Window with explorer only)
     <input type="button" value="Go" 
     onClick="return go()">
</FORM>

</body>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about Windows