You are here:

C#/Process outputs

Advertisement


Question
Hi
I want to create a process that retrieves the output from external application.
I declared OutputDataReceived() event.
My problem is that the process exits after it starts.
How can I get the output string from an external application?

Thanks
Hagay


Answer
it's not possible to get the string when the application exists.. it will run in a different thread so the values are not possible to get it.. may be you can check each external application whether it will allow to dump the data before it exists..

-srini

C#

All Answers


Answers by Expert:


Ask Experts

Volunteer


Srini Nagarajan

Expertise

can answer any kind of questions in ASP.NET, C#, VB.NET, ASP, SharePoint 2007, Coldfusion, Powerbuilder 7.00 / 8.00, JAVA servlets, MS SQL 2000 / MSSQL7, Sybase

Experience

Contact me if you need any custom development on ASP.NET, ASP, Coldfusion, Powerbuilder

©2012 About.com, a part of The New York Times Company. All rights reserved.