Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TooltipText and Pathnames
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
01057614
Message ID:
01057816
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform