Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Path stretcher?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00887257
Message ID:
00887867
Vues:
10
Perfect! Thank you!

>>Is there a command that will turn this
>>-> "C:\DOCUME~1\USERID\LOCALS~1\TEMP\"
>>into this
>>-> "C:\DOCUMENTS AND SETTINGS\USERID\LOCAL SETTINGS\TEMP\"
>>
>>I thought there was, but I can't find it now. TIA
>
>
>DECLARE integer GetLongPathName IN WIN32API ;
>	string @ lpszShortPath, string @ lpszLongPath, integer cchBuffer
>
>#define MAXPATH 267
>STORE SPACE(MAXPATH) TO lpszLongPath
>lcPath = "C:\DOCUME~1\USERID\LOCALS~1\TEMP\"
>lnLen = GetLongPathName(m.lcPath,@lpszLongPath,MAXPATH)
>if lnLen > 0
> ? SUBSTR(lpszLongPath,1,lnLen)
>else
> ? 'Path invalid'
>endif
Cetin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform