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.
 
Back
Top