I have a .NET service.
I have a .NET console application.
I want something along the lines of the service calling Process.Start("consoleapp.exe")
and getting some information returned back from the app, ideally just returning a number.
How do I do this?
Edit:
I figure it must be: Process.Start("myapp.exe").ExitCode
- but how do I set the exit code in the console app?