>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
You can ask the user the path (if not known yet) and put it in a file (any file would do, ini, txt, dbf, registry...). ie: Assuming keeping path in 'datapath.txt':
if !file('datapath.txt')
lcPathDir = Getdir()
StrToFile(m.lcPathDir)
endif
set path to (FileToStr('datapath.txt'))
Cetin