Friday, May 08, 2009

Programmatically Start/Stop Windows Service



using System.ServiceProcess; // add .Net Reference to Project

ServiceController controller = new ServiceController();

controller.MachineName = ".";
controller.ServiceName = "MySQL";
string status = controller.Status.ToString();

// Stop the service

// Start the service

No comments:

Post a Comment

Nomor Telepon PSTN (Pulsa Lokal) Call Center Bank-Bank di Indonesia

Berikut adalah nomor telepon PSTN Call Center Kartu Kredit Bank-bank di Indonesia, biaya telepon seperti pulsa lokal dengan kode area (021) ...