General information
Category:
Windows API functions
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only