To start Wamp Server i am using following code.
Process[] pname = Process.GetProcessesByName("wampmanager");
if (pname.Length == 0)
{
Process.Start(@"C:\wamp\wampmanager");
Thread.Sleep(700);
}
Now , actually i want to Check MySql Service. If already it is not running, start it.
I found answer nearest to my question how do start/stop services using net stop command in c# But in my case, I found message MySql service is not found on machine.