int DisconnectNetworkDrive ( string drive
OK if successful;
drive – a string that
specifies the name of a local device to disconnect, such as "F:".
The string is treated in a case-insensitive manner.
Plug in module:
Call this function to cancel an existing network
connection. You can also call the function to remove remembered
network connections that are not currently connected.
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")