Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get entire network path
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00098744
Message ID:
00098951
Views:
33
>>Hi,
>>
>>I have tried to get the entire network path '\\SERVER\Folder\Program.exe' instead of 'P:\Folder\Program.exe', but without success. How is this done??
>
>I'm not sure that this is what you're looking for, but the API call WNetGetConnection may come close. This will return the remote name to the connection. Here's the declaration:
>DECLARE INTEGER WNetGetConnection IN Win32API;
>  STRING @lpszLocalName,	STRING @lpszRemoteName,	;
>   INTEGER @lpcchBuffer
>The first parameter is the drive letter, the second is the buffer, which should be at least 260 characters, and the third is the size of the buffer. All are passed by reference. The return value will be zero if the function succeeds.
>
>hth,

Thanks,

Exactly what I was looking for.
(using VFP 3.0 for Win & Mac)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform