General information
Category:
Coding, syntax & commands
>subject says it all.
>
>Thanks.
try the following API call:
declare integer WNetGetConnection in Win32API ;
string @cLocalDrive, ;
string @cRemoteUNCBuffer, ;
integer @nSizeOfBuffer
lcBuffer = space(511)
lnResult = WNetGetConnection('S:', @lcBuffer, len(lcBuffer))
* Failed if lnResult # 0
* it's probably not a mapped drive,
* or nothing is mapped to it
return iif(lnResult = 0, left(lcBuffer, at(chr(0), lcBuffer) - 1), '')
PR
Previous
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