locked
Browsing the local network for shares? RRS feed

  • Question

  • Is there any functionality in the .NET Framework to programatically browse the the local network for file shares?

    I looked in System.IO.Directory and System.Net but didn't see anything helpful.  Nor did a search on Google turn up anything.

    I need to have the user select which server to utilize, so I'm looking to populate a combobox of the available servers.

    TIA,

    Richard

     

    Wednesday, February 21, 2007 7:53 AM

Answers

  • You could P/Invoke WNetEnumResource along with other associated Win32 APIs.
    Monday, March 12, 2007 1:40 PM