469,609 Members | 1,166 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

shut down an application on remote machine gracefully

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
Nov 17 '05 #1
2 1666
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

"Gary" wrote:
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

Nov 17 '05 #2
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

"Brendan Grant" wrote:
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

"Gary" wrote:
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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Diogo Alves - Software Developer | last post: by
5 posts views Thread by Anders Both | last post: by
2 posts views Thread by Ken Kolda | last post: by
9 posts views Thread by cow3 | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.