Enumerating share resources on a remote computer

I am looking for a way to find the share paths on a remote machine. This information is visible in the Compmgmt.msc snap in under shares, but I need to extract it programatically in VB6. The path information is retrievable if the remote registry can be read, but often security settings prevent this. Using NET VIEW \\<ComputerName> gives the sharenames, but not the internal pathway associated with them.
The end objective is to find a way to determine whether a share exists on a remote machine which references a specific path on that machine - ie Is there a share on machine ABC which references folder C:\XYZ.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Have you tried WMI?
ajmac-bAuthor Commented:
I haven't...can you point me in the right direction?
I just did.

WMI is the traditional method used to do remote management from the VB/VBScript/VBA environment.
Here are a couple of handy MS pages to get you started:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ajmac-bAuthor Commented:
With a bit of reading and playing, I found a solution that works for my purposes:

Function Shares(computerName As String)

strComputer = computerName
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Share")
For Each objitem In colItems
 lst2.AddItem "Name: " & objitem.Name & vbTab & objitem.Path
End Function
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.