Solved

Enumerate Workgroups with VB6

Posted on 2006-06-16
2
278 Views
Last Modified: 2008-01-09
OK, simply put I want to enumerate the Workgroup Names in My Network Places using Visual Basic 6. Can this be done, I have been trying to figure this out, but have had no luck. ANy help would be appreciated.

Thanks,
ITRNP
0
Comment
Question by:ITRNP
2 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 250 total points
ID: 16922071
Private Sub Command1_Click()
Set oIADsCont = GetObject("WinNT:")
   For Each oIADsChild In oIADsCont
       Debug.Print "Domain: " & oIADsChild.Name & "  " & "ADsPath: " & oIADsChild.ADsPath & "  " & "Class: " & oIADsChild.Class

   Next oIADsChild
End Sub
0
 

Author Comment

by:ITRNP
ID: 16922568
That is exactly what I was looking for!!! Thanks, no really THANKS.

:)

ITRNP
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now