>Andrew and Ed,
> Thank you, thank you, thank you.
>Both "ExeLocation = justpath(_vfp.servername)"
> and "ExeLocation = justpath(SYS(16,0))"
>produce the correct result.
Realize that in the COM environment, they are not identical; I also recommend doing a FULLPATH() on either result, and that you also hook the location that VFP's files from SYS(2004), as opposed to the executable path grabbed above, get snagged, since many people drop things like FOXTOOLS in the same place as the development engine or runtime files.