IFile Method: StartSharing

StartSharing
(
ShareName As String,
Description As String,
MaxUsers As Long
);

Parameters

[in] String ShareName
Relative name of a new share.

[in] String Description
Descriptive string for a share.

[in] Integer MaxUsers
Number of users allowed to access a share

Description
Starts the sharing of a directory with a new sharename and descriptive string for a specified number of users.

Remarks
This method is supported only for directories.

Example

Dim File As Ifile
Set File = GetObject("NTDS://DomainName/MachineName/file_services/c-drive/documents")
File.StartSharing "MyDocuments", "These are my documents", 10

 

See Also: