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 2 1762
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Marina Anufreichik |
last post by:
Hi,
After deploymnet web application on web server I can access page on local
machine and login fine but when I'm trying to access web site from remote
machine I can see login page, but when I'm...
|
by: kuldeep |
last post by:
Hi all,
I have a application developed in C# .net. The problem I face is I am unable
to shutdown my machine
when the exe is running. Windows is unable to close this exe an shut down.
Can anyone...
|
by: Diogo Alves - Software Developer |
last post by:
Hi,
I have a application developed by me in C# that does not let windows shut
down!
What is the problem? is this a Framework bug?
I would like to receive some feedback about this issue
|
by: Anders Both |
last post by:
If no pages in my asp.net web-system, is being requested for some periode,
it seems like the asp.net process is shut down automaticaly. Is this a
normal behavior, or does my system contains some...
|
by: Ken Kolda |
last post by:
We're using .NET remoting hosted under IIS but we're running into problems
with the server shutting down the ASP.NET worker process unexpectedly. Since
I know this can occur because of the settings...
|
by: cow3 |
last post by:
Is there anyone who can help me with this:
I have written a fairly complicated vb application of hydrological
model that does a lot of number crunching. The model creates a set of
object...
|
by: Bubba |
last post by:
Hi,
We have HttpHandlers that can process requests for up to 50 minutes. Those
HttpHandlers are running in an app domain inside the DefaultAppPool. We'd
like the HttpHandlers to be able to...
|
by: sashi |
last post by:
Shut down Windows
For various reasons you may require a shut down of Windows to happen programmatically. For instance if the installation of your program requires system reconfiguration. The...
|
by: TC |
last post by:
I'm confused about the proper way to shut down my application.
I have a form which instantiates a control, which instantiates another
control, which instantiates yet another control that runs a...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |