0

How do I get all of the mapped network drives (shared ones) like the ones that a person would see in Windows Explorer?

That is,

  • Network Places
    • Computer 1
      • Shared Folder
    • Computer 2
      • Shared Folder 1
      • Shared Folder 2

Is there a command or an API function that I can use to get at least the names of the computers and its folders?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Noobster
  • 1
  • 1
  • 1

1 Answers1

0

You can find a good ready-to-use solution in Network Shares and UNC paths (at The Code Project).

If you want to do it yourself, I think using WMI would be the way to go.

Also check Mapped network drives cannot be listed in C# for more information.

Community
  • 1
  • 1
Kamyar
  • 18,639
  • 9
  • 97
  • 171