Brad

Brad

  • NA
  • 13
  • 0

UNC. How do I find shared directories?

Jan 27 2006 12:25 AM
In the application I am currently working on, I need to return a list off the UNC paths to all shared directories.. The same sort of list you get when you open 'My Network Places'. There is a simple solution of looking in the C:\Documents and Settings\\Nethood.. But this is not a good solution. This directory only updates when you manually visit the My Network Places folder. So if a new share becomes available, it will not by found by the application until some user refreshes the My Network Places folder.. I need a proper solution.. Not a clumsy loop though the NetHood folder.. .NET must have functions that can talk to the Network.. That can return for me all of the current network shares.. How do I do that? Where should I start looking for classes and functions to help with this? Thanks EDIT: Spelin mustaks

Answers (7)