Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapping a drive letter to a UNC name
Message
 
To
06/09/1996 11:02:18
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00007356
Message ID:
00007363
Views:
35
>Is it possible, from the main.prg, to map a drive letter to a path named "\\server\c\test" ?

Enrico,

I haven't tried this, but I'm told it works:

DECLARE integer WNetAddConnection IN win32api string,string,string

x = WNetAddConnection("\\server\c\test",.NULL.,"H:")

IF x = 0
=Messagebox("connected"0,"")
ELSE
=MessageBox("unable to connect",0,"")
ENDIF

HTH,
Scot.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform