Showing the output of a console app on a web page

  • Thread starter Thread starter A.M
  • Start date Start date
A

A.M

Hi,

I want to show the output of a console app (lile TRACERT.EXE) on wa web
page.

What would be the best way to capture the output of a console app into a
string in a ASP.NET program?

Thanks,
Alan
 
Hi Alan:

Use the Process class from the System.Diagnostics namespace.
With the proper setup you can read the StandardOutput stream, which is
what would normally be displayed in the console window.
There are examples in the documentation.

HTH,
 
Back
Top