Enumerating network shares
Enumerating network shares
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.
stackoverflow.com/questions/8919/…
– Jim Schubert
Jan 19 '10 at 4:49
1 Answer
1
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
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
I'm not sure what you mean. You just want to list all the files available under \hostname ?
– user24359
Jan 19 '10 at 4:47