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:
00887499
Vues:
10
This message has been marked as the solution to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform