?
Solved

Enumerate Workgroups with VB6

Posted on 2006-06-16
2
Medium Priority
?
288 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 1000 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

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

839 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