By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,087 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,087 IT Pros & Developers. It's quick & easy.

shut down an application on remote machine gracefully

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.