.NET and C# Code samples
Pages
Home
View All Code Samples
SQL (Server) Samples
HTML5 + Windows8 Samples
AngularJS
How to check windows service status? (Whether Running/Stopped/Paused)
How to check windows service status? (Whether Running/Stopped/Paused)
Sample code in ASP.NET and C#:
ServiceController
serviceController =
new
ServiceController
(“<Service Name>”);
status = serviceController.Status.ToString();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment