File_DeleteShare
Description
Section titled “Description”Removes a share on a local computer. The shared folder and its files aren’t deleted.
Syntax
Section titled “Syntax”File_DeleteShare(sShareName) As Boolean
Parameters
Section titled “Parameters”sShareName (String)
Section titled “sShareName (String)”Name for the shared resource, not the path of the shared folder
Remarks
Section titled “Remarks”The result that Windows returns, for example Successfully removed share, is written to the job log.
Example
Section titled “Example”If bStatus Then bStatus = File_DeleteShare("WinShare")