Enumerating network shares

后端 未结 1 1893
悲哀的现实
悲哀的现实 2020-11-29 12:07

Is there a part of the .net framework that enumerates the file shares on a host? I\'ve found some things that use the WMI, but I\'d prefer not to go that route.

相关标签:
1条回答
  • 2020-11-29 13:01

    You can use NetShareEnum win32 api. http://www.pinvoke.net/default.aspx/netapi32/netshareenum.html

    Or look at the following project which is .NET Wrapper over it. http://www.codeproject.com/KB/IP/networkshares.aspx

    0 讨论(0)
提交回复
热议问题