PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Service: check is program running
Service: check is program running
Iniciado por Tim, 28,abr. 2016 13:44 - No hay respuesta
Miembro registrado
34 mensajes
Publicado el 28,abril 2016 - 13:44
Hi all,

For a self-scan ECR/ POS system I would like to have a service running that checks if the POS software is running. In case of a crash, the service could restart the program.

Is there an elegant solution to do this? I was thinking of using tasklist.exe
ExeRun("tasklist.exe"" /FI ""PID eq 4976"" /FI ""STATUS eq RUNNING"" /NH",exeActif,exeValeurRetour)


But since the return value is a integer, I can't do much with it.

Any thoughts?


Thx,

Tim