Hi,
you have quite a few options.
1. The simplest for you is to distribute the config.fpw separate from the executable and let the user change the PATH= statement as desired.
2. use a file (for example an INI file a text file or a DBF) to store the path information and read it from there. You will then need some way of setting this value when the program is first installed.
3. Use the registry to store and retrieve the path information. Again you will need some way to update the information on first install.
I tend to store it in the registry. When the application is first run, if the DBC (or some other file) cannot be found I prompt the user to locate the file and then store that path in the registry.
Hope that helps.
>Hi,
>This is probably easy to most of you but is my first trial.
>I have an app that utilitize free tables stored in the server
>under a directroy "app_data"
>
>To access the data I have this set path command hard coded
>in my main.prg: SET PATH TO "F:\APP_DATA"
>
>This is working fine except now I would like my program to be
>installable on any workstation on which the server is mapped to
>some other drive letters instead of F:. What changes do my program
>need in order to allow the user to set up the correct data data path
>while running setup of the app? How exactly is it done?
>
>Thanks for all help.
>
>--
>jw