Skip to content

File_DeleteShare

Removes a share on a local computer. The shared folder and its files aren’t deleted.

File_DeleteShare(sShareName) As Boolean

Name for the shared resource, not the path of the shared folder

The result that Windows returns, for example Successfully removed share, is written to the job log.

If bStatus Then bStatus = File_DeleteShare("WinShare")

Scripting Guidelines

File_CreateShare Constants Package Property Variables