Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning UNC path with GetFile()
Message
De
08/09/2000 16:25:23
 
 
À
07/09/2000 05:59:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00411000
Message ID:
00414402
Vues:
24
You could create a method to convert the Drive letter to UNC


LPARAMETER cDriveLetterToCheck
Local cBuffer, nResult


Declare Integer WNetGetConnection In Win32API ;
String @cLocalDrive, ;
String @cRemoteUNCBuffer, ;
Integer @nSizeOfBuffer
cBuffer = Space(511)
nResult = WNetGetConnection(Left(cDriveLetterToCheck,2), @cBuffer, 511)

nResult is the UNC value of the Mapped drive.
You may want to do some checking for if the Drive letter is a local drive.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform