• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

is it possible to read the status of any given service

hi everyone,

is it possible in vb.net to read the status of any particularly service?

like msgbox("Service is currently " & getServiceStatus(name))

?

Many thanks
0
jimbona27
Asked:
jimbona27
  • 2
1 Solution
 
TimCotteeCommented:
Hi jimbona27,

http://www.dotnetbips.com/articles/displayarticle.aspx?id=182

Shows how, download the source and it shows how to enumerate, start, stop and view the status of services.

Tim Cottee
0
 
jimbona27Author Commented:
thanks for this although do I need to down anything for using

Imports System.ServiceProcess

as this "cannot be found"?

0
 
jimbona27Author Commented:
think thats okay actually, just added the reference.  i thought "imports whatever" was the same as adding a reference.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now