Andrew and Ed,
Thank you, thank you, thank you.
Both "ExeLocation = justpath(_vfp.servername)"
and "ExeLocation = justpath(SYS(16,0))"
produce the correct result.
I'm embarassed that I did not find either of these commands.
My Best,
Robert
>Robert,
>
>I think you might be looking for:
>
>
application.servername (or
_vfp.servername)
>
>Cheers,
>
>Andrew
>
>
>
>>I am looking for a VFP command that will return the path of the running exe that the Delphi command below returns:
>>
>>Delphi command~"ExeLocation := ExtractFilePath(Application.EXEName);"
>>
>>Note: the reason I need this is that MS's new Visual Installer creates shortcuts with an empty "start in" location. When I try to set help to myhelpfile it no longer finds my help file which is in a subfolder below my exe's folder. If I launch my exe from it's on folder there are no error messages. When launched from the shortcut, the help file is not found and errors result. I wrote a DLL in Delphi to obtain the true location of my vfp exe, but it seems as though there should be a command in VFP. Sys(5)+Curdir() seems to return the location of the VFP runtime dll.
Robert - Zxytek