CSHARP API

13/01/2005 - 19:10 por Andy | Informe spam
Friends,

I have a question, I would like to write a Windows service to check if
executable is started. I have a executable, when the user start it for
second time, I have tell user that they have started it already and
close the second instance. I have the application executable, but not
source code.

For example,

Let use assume, Calc.exe whenever I start a Calc.exe I have to check if
the Calc.exe already open if opened I have give user information that
Calc already open and close the second instance started.
It is urgent. Please help asap.

Thanks.
Andy

Preguntas similare

Leer las respuestas

#1 Guillermo guille
13/01/2005 - 19:36 | Informe spam
La respuesta en castellano que este es un grupo".es." / The answer in Spanish,
because we're ins a Spanish group.

Puedes usar la clase Process y comprobar los procesos activos, comprobar si
alguno está duplicado (y que sea de los que quieres que no haya duplicidad o
bien comprobar sólo los que tengan título en la ventana) y detener el que se
haya iniciado con postrioridad.

Aquí tienes un ejemplo que te pude ser de utilidad:
http://www.elguille.info/NET/dotnet...sos.htm#cs

Nos vemos.
Guillermo
Microsoft VB MVP desde 1997
Te invito a mi sitio dedicado al VB y más...
http://www.elguille.info/
http://www.mundoprogramacion.com/
(puede que el correo usado sea anti-spam)


"Andy" wrote in message
news:
Friends,

I have a question, I would like to write a Windows service to check if
executable is started. I have a executable, when the user start it for
second time, I have tell user that they have started it already and
close the second instance. I have the application executable, but not
source code.

For example,

Let use assume, Calc.exe whenever I start a Calc.exe I have to check if
the Calc.exe already open if opened I have give user information that
Calc already open and close the second instance started.
It is urgent. Please help asap.

Thanks.
Andy

Respuesta Responder a este mensaje
#2 Andy
15/01/2005 - 02:22 | Informe spam
Only English please. I cannot understand what you are saying. Can you
get in english. Thanks you very much.

Andy.
Respuesta Responder a este mensaje
#3 Pedro Luna Montalvo, MVP
15/01/2005 - 15:57 | Informe spam
This is a spanish forum. All microsoft.public.es.* are spanish forums.

If you have problems understanding this language, you'd better try in a
english forum.



"Andy" escribió en el mensaje
news:
Only English please. I cannot understand what you are saying. Can you
get in english. Thanks you very much.

Andy.

Respuesta Responder a este mensaje
#4 Jorge Serrano [MVP VB]
16/01/2005 - 11:19 | Informe spam
Hi Andy,

I'll try translate this answer to English. I hope that helps.

"You can use the Process class and test the active processes, check if some
of them are duplicate and stop the process that has started before."

I am not sure if I have translated it fine, but I think that has sense. ;-)

Kind Regards,

Jorge Serrano Pérez
MVP VB.NET


"Andy" wrote:

Only English please. I cannot understand what you are saying. Can you
get in english. Thanks you very much.

Andy.


Respuesta Responder a este mensaje
#5 Andy
19/01/2005 - 01:49 | Informe spam
Dear Jorge Serrano Pérez,

It is great sir. I really appreciate your care and respect for
humatarian. I really wish you to reach your higher goal.

Andy.
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida