int MapNetworkDrive ( string drive,
string networkPath, string password,
string domain, string user )
OK if successful;
drive – a string that
specifies the name of a local device to redirect, such as "F:". The
string is treated in a case-insensitive manner.
networkPath – a string
that specifies the network resource to connect to. Must follow the
network provider's naming conventions.
a string that specifies a password to be used in making the network
domain – a
string that specifies the network domain name.
user – a
string that specifies the user name
Plug in module:
Call this function to make a connection to a network
resource and create the network drive letter in the MS-DOS device
namespace according to the drive
The following example demonstrates the use of
int nStatus = MapNetworkDrive("I:", "\\server\Folder", "password", "myDomain", "me")
if(nStatus == OK)
Println("Drive I: connected")
Println("Failed to map network drive")