>Another thing -- CURDIR() should be used with caution, as you might not get what you expect, as it may or may not be directed to the place where the EXE resides (in worst case, it points somewhere in the Windows system directories). If you're trying to use the directory in which the program resides, then it's best to use JUSTDIR(SYS(16,0)).
You must mean JUSTPATH() as there is no VFP function JUSTDIR().