If you need to map a network drive (on a windows OS) via LotusScript you can create a WScript.Network object and use the MapNetworkDrive function:

 

Set x = CreateObject("WScript.Network")
x.MapNetworkDrive strLocalName, strRemoteName, [bUpdateProfile], [strUser], [strPassword]

strLocalName

String value indicating the name by which the mapped drive will be known locally.

strRemoteName

String value indicating the share's UNC name (\\xxx\yyy).

bUpdateProfile

Optional. String value indicating whether the mapping information is stored in the current user's profile. If bUpdateProfile is supplied and has a value of true, the mapping is stored in the user profile (the default is false).

strUser

Optional. String value indicating the user name. You must supply this argument if you are mapping a network drive using the credentials of someone other than the current user.

strPassword

Optional. String value indicating the user password. You must supply this argument if you are mapping a network drive using the credentials of someone other than the current user.

 

Example:

Set x = CreateObject("WScript.Network")
x.MapNetworkDrive "x:","\\8.8.8.8\acmeshare", False, "acme\user001","myPassWord"

Leave your comments

Post comment as a guest

0

Comments

    • No comments found