Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if a service is running
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01180151
Message ID:
01180154
Vues:
31
>Could anyone offer a way of checking to see whether or not a WinNt service is running on a local machine in code?
>
>Thanks,
>-Matt
oShellApp = CreateObject("Shell.Application")
IF oShellApp.IsServiceRunning("Here write the Service Name")
   MESSAGEBOX([Yes])
ELSE
   MESSAGEBOX([No])
ENDIF
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform