Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find the path to the EXE?
Message
From
07/03/1997 10:30:54
 
 
To
07/03/1997 09:26:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00023277
Message ID:
00023358
Views:
32
y0,

>That's my problem, how do I know the exe directory. When the user install my app, s/he can choose installation(exe) directory, but how do I set:
>SET DEFAULT TO ????
>SET PATH TO ????

Try this:

SYS(5) + CURDIR()

I also use an .ini file that contains the path to the dir my tables are in. Each time my app starts, it checks for that .ini. If it isn't found, the user will be prompted to select the dir interactively and the new ini will be created.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform