shut down an application on remote machine gracefully

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, there,

I have an application running on remote machine, and would like to close it
gracefully. Like a human go to there, push the stop button, and close it
after several seconds.
How to implement that in C#? Any suggestion?

Thanks lot,

Gary
 
The most simplistic method you are going to find would be to have your
application open a port and wait for a new connection to it that sends a
specific value/string across, which if found calls Application.Exit().

Brendan
 
Hi, there,

Thank you very much for your reply. Could you please explain that in detail?
The application is coded in COM. How to open a port, and listening in that
case? And how to implement the sending in C# program?

Thanks lot,

Gary
 

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