开发者

Listing mapped network directories in VB.NET

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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜