Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Path Problems
Message
General information
Forum:
Visual FoxPro
Category:
Project manager
Title:
Miscellaneous
Thread ID:
00410604
Message ID:
00410675
Views:
14
Rather than setting the path in code, try creating a file named config.fpw, which will serve as a configuration file for your program. In that file (a simple text file), add a line similar to:

PATH=c:\projectname\data;c:\projectname\forms;c:\projectname\reports

or

PATH=data;forms;reports

You can use the latter if your executable exists in the c:\projectname directory.

Use the -c command line option to tell your program where its configuration file exists.

>OK, I'm running into a couple of issues with paths. The first is that I've tried setting my path: SET PATH TO "C:\projectname,C:\projectname\data,C:\projectname\forms,C:\proj..." in numerous places such as in the code that I set as main, in options from the designer window, and in form inits.
>
>Regardless, when something is called from the C:\projectname\reports folder (or forms, menus,...) the program can't find it.
>
>The second issue is that this program is intended for multiuser use, and I can't visualize how these paths are going to be manipulated when installed. IOW, what if they are installed on drive D:? I've already hardcoded the paths to be drive C:\whatever.
>
>I've started researching these issues in the msdn online help, but would appreciate a professional's point of view.
>
>Rodney
Chris McCandless
Red Sky Software
Previous
Reply
Map
View

Click here to load this message in the networking platform