How to change Service status

  • Thread starter Thread starter Viv
  • Start date Start date
V

Viv

Hi,
I want to change the Status of service through C# code. I
want the status of the service to change from Disable to
Automatic. How can I do this using .Net Framework. This
service is already installed on the machine.

-Viv
 
Check out the System.ServiceProcess namespace in the MSDN online help,
specifcally the ServiceController class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top