File_CreateShare
Description
Section titled “Description”The function creates a file share on a local computer
Syntax
Section titled “Syntax”File_CreateShare(sDirectory, sShareName) As Boolean
Parameters
Section titled “Parameters”sDirectory (String)
Section titled “sDirectory (String)”A directory on the disk to be shared
sShareName (String)
Section titled “sShareName (String)”The name for the shared resource
Remarks
Section titled “Remarks”The result that Windows returns, for example Successfully shared or The sharename already exists, is written to the job log.
Example
Section titled “Example”If bStatus Then bStatus = File_CreateShare("C:\Windows", "WinShare")Related functions
Section titled “Related functions”File_DeleteShare File functions Constants Package Property Variables