Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Short DOS names
Message
De
09/02/1999 23:13:26
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
25/01/1999 12:48:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00179850
Message ID:
00185824
Vues:
28
Thanks, Ed, for this routine. I had occassion to need it today, and it's perfect.

>
>LPARAMETER cPathToConvert
>DECLARE INTEGER GetShortPathName IN Win32API ;
>  STRING  @cLongPath, ;
>  STRING  @cShortPathBuff, ;
>  INTEGER nBuffSize
>LOCAL cBuf, nBufSize, nShortSize
>cBuf= space(511)
>nBufSize = 511
>nShortSize = GetShortPathName(cPathToConvert,@cBuf,@nBufSize)
>IF nShortSize > 0
>	RETURN LEFT(cBuf,nShortSize)
>ELSE
>	RETURN ''
>ENDIF
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform