3

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.

JimDel
  • 4,279
  • 11
  • 50
  • 96

1 Answers1

4

You can do that in fairly simple way.

Community
  • 1
  • 1
MadBoy
  • 10,529
  • 21
  • 90
  • 151