Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple installs on a network drive?
Message
De
22/05/1998 10:08:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
22/05/1998 09:58:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00101140
Message ID:
00101150
Vues:
26
>>>I have a multi-user application in VFP 5.0 in which I created the network setup file for. When installing the application on each of the users PC's do I pick the same default network drive and directory for each PC (should each user be installing to the same place netdrive:\appdir)?
>>>
>>>Thanks
>>I just copy netsetup to server then each user installs from there to their local pc. This reduces the network traffic. On startup main.prg checks for a path.mem file and if doesn't find one prompts for data dir. After data dir is selected it's saved to mem file for later accesses.
>>Cetin
>
>How do I get each users application to be looking at the network:\datadir for the database files rather then their local drive. I tried to remove the database files from the project but that didn't work.
>Thanks
* Main.prg
if !file(home()+"datapath.mem")
   m.datadir = getdir()
   if empty(m.datadir)
      messagebox("No data dir")
      quit
   endif
   set path to (m.datadir)
   save to (home()+"datapath.mem")
else
   restore from (home()+"datapath.mem") additive
   set path to (m.datadir)
endif
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