Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connect to shared folder on peer-to-peer network
Message
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00609221
Message ID:
00609661
Views:
17
Here's my little proc for mapping a network share:

PROCEDURE mapdrive
* do mapdrive with "\\servername\sharename", "k:"
LPARAMETERS lcdrvltr, lcnetpath
DECLARE LONG WNetAddConnection IN mpr.DLL STRING@, STRING@, STRING@
retval=wnetaddconnection(@lcnetpath, CHR(0), @lcdrvltr)
*remove the registered library
CLEAR DLLS
RETURN retval
ENDPROC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform