You can use
STRTOFILE( FILETOSTR("config.trk"), "config.fp")
. The FILETOSTR function will find config.trk file inside EXE.
>I was doing that in fpd26 and don't have any problem:
>
>add file config.trk in project.
>
>build exe and run exe another folder in another machine and do this command:
>
>copy file config.trk to config.fp
>
>In vfp8 if I copy exe on another machine with same folder .exe builded no problem. but if I run exe another folder vfp8 gives file not found error. if I use ?file("config.trk") it gives .t. but vfp8 .exe want to be same folder.
>
>Maybe I can open file with fopen() and copy then (I didn't try). but copy file was too easy.
--sb--