Here is the situation. I got a WISE program that install my application on a client machine. Then after the installation, the WISE program start a program that update some tables. In order to find the directory where to find the table, I use a file cas "CASPATH.CFG", which is directly in the directory where I installed the program. But when I try toopen it that way:
IF !FILE("CASPATH.CFG")
RETURN .F.
ELSE
LnFileHandle = FOPEN("CASPATH.CFG")
blablabla....
ENDIF
It always return false, as if it wasn't searcing in the right directory. I'm pretty sure that it is indeed the problem, because I put my installation file in the same folder and then it worked.
I don't want to force people to put then in the directory, because I want to send them the program so that they install it themself, and god I know that sometime it is hard for some people to even change the position of a file. Is there a function that will determine the location of the executable file I run(the one after the installation, not the installer itself)?
NOTE: (the executable that I did in FoxPro is nothing but a small .prg file, but I need to do it because WISE only support Executable.)