|
-
May 9th, 2007, 11:17 AM
#1
Thread Starter
Need-a-life Member
-
May 9th, 2007, 11:20 AM
#2
Re: List Services
Try this
Code:
'Set a reference to WMI Scripting
Private Sub Command1_Click()
Dim serviceset As Object
Dim service As Object
Set serviceset = GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf("Win32_Service")
For Each service In serviceset
List1.AddItem service.Name & ": " & service.Description
Next
End Sub
Last edited by Hack; May 9th, 2007 at 11:24 AM.
-
May 9th, 2007, 11:35 AM
#3
Thread Starter
Need-a-life Member
Re: List Services
So close!! How do I get to know if the service is running or stopped?
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
May 9th, 2007, 11:38 AM
#4
Thread Starter
Need-a-life Member
Re: List Services
Found it!! It was service.state. Thank you, Hack!!
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
May 9th, 2007, 11:43 AM
#5
Re: List Services
You are welcome. 
If you consider this resolved, you could help us out by pulling down the Thread Tools menu and click the Mark Thread Resolved menu item. That will let everyone know that you have your answer.
Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|