Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert long file name to 8 character DOS name
Message
 
À
06/02/2003 00:13:49
Hee Lim Wang
Fantasy Software Enterprise
Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00749714
Message ID:
00749726
Vues:
23
I just figured this out a few days ago, as I had the same need, but you should check it first.

PROCEDURE ShortPathName
PARAMETERS pLongPath

* Uses WINAPI to get DOS8.3 type name

DECLARE INTEGER GetShortPathName IN kernel32;
STRING @ lpszLongPath,;
STRING @ lpszShortPath,;
INTEGER cchBuffer

LOCAL lclBuffer, lLen

lclBuffer=SPACE(250)+CHR(0)
lLen=GetShortPathname(pLongPath+CHR(0), ;
@lclBuffer,250)

RETURN left(lclBuffer,lLen)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform