NetShareAdd (\%shareinfo, $error, [server])
- Makes a disk resource described by shareinfo available for sharing on the network. server is the name of the server for the shared resource (
local is assumed if not specified). Any error that occurs is saved in the variable named by error.