Hi there,
there`s an API
unsigned long WNetAddConnectionA(CStr lpRemoteName, CStr lpPassword, CStr lpLocalName);
in mpr.dll.
lpRemoteName the address of a network resource (e.g. "\\YOURSERVER\YOURDRIVE")
lpPassword may be NULL
lpLocalName should be NULL, otherwise the API maps lpRemoteName to the drive you specify in lpLocalName (e.g. lpLocalName = "e:")
if all is ok, the API returns 0, otherwise some errorcodes.
more info can be found here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wnet/wnet/wnetaddconnection.asp
best regards
chris
Best regards
chris
CL(A)Dly bending G-Force with LabVIEW
famous last words: "oh my god, it is full of stars!"