Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stopping and re-starting an NT service programatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00474550
Message ID:
00474554
Vues:
30
>Is there a easier way than using API calls such as ControlService? Unfortunately, this service is from a 3rd party, it's not SQL Server or MTS or another product from Microsoft that has a simple way to do it.
>
>Anyone already write code to do this?
Use ADSI:
oservice = getobject("WinNT://Mycomputer/Myservice,service")
oservice.Stop
oservice.Start
HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform