skip to main
|
skip to sidebar
windows-service
Search This Blog
Start Windows Service -C# code
ServiceController sc = new ServiceController();
sc.ServiceName = "ServiceName1";
if (sc.Status == ServiceControllerStatus.Stopped)
{
sc.Start();
}
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Archive
▼
2007
(7)
►
April
(3)
Apr 11
(3)
▼
March
(4)
Mar 16
(3)
Mar 09
(1)
0 comments:
Post a Comment