Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Little Problem with the PATH
Message
From
20/03/2001 16:00:12
David Brunelle
Université de Sherbrooke
Sherbrooke, Quebec, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Little Problem with the PATH
Miscellaneous
Thread ID:
00487007
Message ID:
00487007
Views:
41
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.)
Next
Reply
Map
View

Click here to load this message in the networking platform