Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TooltipText and Pathnames
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Divers
Thread ID:
01057614
Message ID:
01057816
Vues:
18
>Never mind - GetLongPathName() API does the trick.
>But why does SYS(2023) return the full filename in the dev environment and the DOS path name in the EXE (is it documented anywhere)?
>
>Regards,
>Viv
>
You can also use the Windows Script Host to do this. See the series of articles that the late Ed Rauh and I did for VFUG a few years back. Of interest will be the third article in the series on the Scripting.FileSystemObject. It can get you and object reference to the file like this.
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
lcFile = "VFP9.EXE"
oFile = oFSO.GetFile(lcfile)
? oFile.Path
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform