Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stopping and re-starting an NT service programatically
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00474550
Message ID:
00474554
Views:
32
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform