SPServer.CreateFileShare method

Creates a shared directory.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static void CreateFileShare(
	string name,
	string description,
	string path
)

Parameters

name
Type: System.String

A file share name. Must not be null or empty.

description
Type: System.String

Description for file share. Can be null or empty.

path
Type: System.String

The full path to the directory to be shared.

The directory will be created if it does not already exist. The ACL of the directory will be set to allow access to local administrators and members of the local administration worker process group. The share allows writing by members of the local worker process group.

Show: