>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