4

I want to manage shared folders on a remote machine from a C# application. Is there a way to do this using C#?

I know WMI can do remote management but I haven't found a way to manage file and folder sharing.

Helen
  • 87,344
  • 17
  • 243
  • 314
Simon Schürg
  • 2,134
  • 2
  • 20
  • 31

1 Answers1

5

The Win32_Share WMI class can be used to manage shared resources, including folders. The MSDN documentation page includes some sample code for creating a share (see the example by Radjin Sardjoe Missier on that page).

drf
  • 8,461
  • 32
  • 50