Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Installation Paths
Message
De
27/04/1998 10:43:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00095134
Message ID:
00095145
Vues:
24
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform