> I have simple windows service (C# code), from which I am calling an
> external
[quoted text clipped - 3 lines]
> How do I call this console application from windows service so that I can
> read the values returned from the console application. [...]
A process has an exit code, which is the value returned by the main
function. You can retrieve it from the Process.ExitCode property once the
process has exited.
If by "return" you don't really mean "return", but rather than the console
application writes the exit codes as text to the standard output, then
instead you can read the standard output by redirecting it. Again, use
the Process class to do this (see ProcessStartInfo.RedirectStandardOutput
and Process.StandardOutput properties).
Pete
pradeep_TP - 26 Jun 2007 10:57 GMT
Thank you Peter. This is what I was looking for :).
> > I have simple windows service (C# code), from which I am calling an
> > external
[quoted text clipped - 15 lines]
>
> Pete