Starting and Stopping Services

  • Thread starter Thread starter David Elliott
  • Start date Start date
D

David Elliott

I have a project that I am working on that is generally avaiable in a distributed server
environment. My customer has requested that a scaled down version be built that can
be installed on a laptop. Since the application won't be run all the time, I would like to
give the user a nice way to stop and start the services due to the amount of memory
that is consumed.

I will have multiple services to stop and start at a time. I was thinking that a new .NET
application that I could configure through an XML file would be the way to go.

Is there a .NET or Win32 API or some other way to do this?

Thanks,
Dave
 
There is a ServiceController component on the Components tab of the toolbox,
that'll do just that for you.
Writing a .NET app to control services is a breeze.
 
Back
Top