rupak_khurana
asked on
How to Map Network Drives ........
thru software as we do in the Explorer ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
One other thing that I forgot - you'll have to link with 'mpr.lib'
ASKER
I tried connecting and disconnecting too. Works pretty fine...Thanks a lot
nr.dwType = RESOURCETYPE_DISK;
nr.lpLocalName = ""; // use a drive letter like "L:" to map it to a local drive
nr.lpRemoteName = "\\\\server\\share";
instead - sorry...