简体   繁体   中英

How can I find the names of all shares on a LAN without knowing any machine names using C#?

How can I find all the shares on a LAN without knowing any machine names or domain names using C#? I've found all kinds of solutions if you know the machine name but that isn't going to be available to me. I'm looking to obtain something similar to whats below:

//joescomp/public
//beth/apps
//server/pdf
//server/public

So it will show the name of the machine and whats shared on it.

Thanks.

You can do that in fairly simple way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM