Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically Add, Verify, Stop, Start & Remove Services?
Message
From
28/11/2001 09:45:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Programatically Add, Verify, Stop, Start & Remove Services?
Miscellaneous
Thread ID:
00586930
Message ID:
00586930
Views:
59
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.
Next
Reply
Map
View

Click here to load this message in the networking platform