Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get entire network path
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00098744
Message ID:
00098810
Vues:
30
>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,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform