Skip to content

File_CreateShare

The function creates a file share on a local computer

File_CreateShare(sDirectory, sShareName) As Boolean

A directory on the disk to be shared

The name for the shared resource

The result that Windows returns, for example Successfully shared or The sharename already exists, is written to the job log.

If bStatus Then bStatus = File_CreateShare("C:\Windows", "WinShare")

Scripting Guidelines

File_DeleteShare File functions Constants Package Property Variables