Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically Add, Verify, Stop, Start & Remove Services?
Message
De
28/11/2001 09:45:58
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Programatically Add, Verify, Stop, Start & Remove Services?
Divers
Thread ID:
00586930
Message ID:
00586930
Vues:
60
Hi folks,

Any of you API gurus know of a way to programatically Add, Remove, Verify installation of, verify current status (running or stopped) a Windows service?

I have a program that runs as a service and I want to also create a separate program that will allow me to remotely manage the service. For example, I may want to install a new version. That would require that I perform a series of functions:

1. Is the service currently installed?
2. Is it running? If so stop it.
3. Remove/Update EXE
4. Restart service.
5. Verify service is now running or is in original state I found it.

I'm thinking that the Windows Scripting Host may be the ticket but I'm a dunce when it comes to knowing the API to call/use.

TIA!!!
Best,


DD

A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform