Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Installation Paths
Message
From
27/04/1998 10:43:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00095134
Message ID:
00095145
Views:
23
>What is the best solution to let your exe no where the database files are stored on the hard disk. It is a pain in the but to hard code this every time you move your databse to a different directory or drive?
Matthew,
What I do is to create a directory (under VFPPROJECTS) for a project and a data, report etc dir under it. Dir struc looks like something like this :
..\MyProj
..\MyProj\Data
..\MyProj\Report
I put all dbc,dbf and alike in data dir. Also my config.fpw or startup.prg has "set path to data;report;". Notice that here paths are relative to current dir. I move my dir to anywhere on disk preserving data and report dirs exist under app dir. So app always uses its "own" data dir.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform