MapShare
Maps a share to a drive and returns a Boolean indicating if the mapping was succesfull.
Syntax
MapShare( drive, share [, persistent] [, closeApplicationOnFail] [, userId] [, password] )
Parameters
Name | Type | Description |
---|---|---|
drive | String | Required. Drive to be used for mapping. |
share | String | Required. Full path of the share to be mapped. |
persistent | Boolean | Optional. Indicating if the mapping should be permanent or not. Default: False |
closeApplicationOnFail | Boolean | Optional. Indicating if the application should be close when the mapping fails. Default: True |
userId | String | Optional. UserId when the share is a protected. Default: "" |
password | String | Optional. Password of the UserId when the share is protected. Default: "" |
Return value
Boolean : True when the mapping was succesfull, otherwise False when closeApplicationOnFail is set to False.
Filesystemtag:FilesystemNetworktag:Network
See also
- GetDriveLetter
- ShowError