Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert long file name to 8 character DOS name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00749714
Message ID:
00750239
Vues:
20
>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)

Excellent - I never thought I'd need it - but the need just arrived - Thanx
Edgar L. Bolton, B.S. B.B.A.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform