Starting a process and retrieving the results

  • Thread starter Thread starter Simon Harvey
  • Start date Start date
S

Simon Harvey

Hi all,

Can anyone advise me on how I would start a windows application from a
Windows service and somehow retrieve the result that gets returned from
the .exe's Main method?

I need to call the application and then surpress a timer in the service
whilst the application executes. Then once the result comes back, I need
to re-enable the timer.

Thanks

Simon
 
Simon,

When you use the Proces class, after the process has completed, you can
check the ExitCode property to get the return value from the Main method of
the process.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top