Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Joseph G. Njoroge
  Where is Joseph G. Njoroge?
 Nairobi
 Kenya
 Joseph G. Njoroge
 Tags
Subject: RE: Foxuser.dbf
Thread ID: 189150 Message ID: 189166 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: Distribution and InstallShield
Date: Wednesday, August 13, 2008 3:52:37 PM         
   


> >
> > If VFP does not find foxuser.dbf it is "normal" path, it creates one. So I thhink it might be a differnt issue. Can you post you main program or parts of it, perhaps there is something in there.
> >
> > Mike Gagnon
> > Refox XI +(English version)
>
> Hi Mike,
> Below is my code
>
SET SYSMENU OFF
> SET PATH TO SYS(5)+'\sslerp'
> TALK = OFF
> MULTILOCKS = ON
> EXCLUSIVE = OFF
> SAFETY = OFF
> DELETED=ON
> MVCOUNT=5120
> RESOURCE=OFF
> TEMPFILES=c:\sslerp\temp
> DEACTIVATE WINDOW "Project manager" ALL 
> _screen.Visible= .F.
> DO FORM SYS(5)+'\sslerp\forms\login.scx'
> READ EVENTS

> Best Regards,

Hi Joseph -

Try to get rid of the SYS(5) (because it returns the drive letter of your current default directory (CD, CurDir()), which might be misleading).
Even when you say you install the EXE on the server, the client PC is the one running your EXE, so Sys(5) might return C:\ or even the mapped drive letter like W:\ or so, or whatever you have specified as "start in" in a desktop shortcut.

When you want to run the EXE shared among all clients, it sounds as if you can make sure that the desired Data folder is always a subfolder of the EXE's folder, right?
If so you can do set CurDir() first (just to be sure, and at runtime only):
If Version(2)=0
    CD (JustPath(Sys(16,0)))
Endif

And then set a relative path (assuming "sslerp" is your data folder):
SET PATH TO sslerp


Aside from that, the following lines are using config.FPW syntax, so they won't work as expected when you have them in your "main.prg":
> TALK = OFF
> MULTILOCKS = ON
> EXCLUSIVE = OFF
> SAFETY = OFF
> DELETED=ON
> MVCOUNT=5120
> RESOURCE=OFF
> TEMPFILES=c:\sslerp\temp



hth
-Stefan

ENTIRE THREAD

Foxuser.dbf Posted by Joseph G. Njoroge @ 8/13/2008 2:38:49 PM
RE: Foxuser.dbf Posted by Mike Gagnon @ 8/13/2008 3:13:40 PM
RE: Foxuser.dbf Posted by Joseph G. Njoroge @ 8/13/2008 3:20:40 PM
RE: Foxuser.dbf Posted by Stefan Wuebbe @ 8/13/2008 3:52:37 PM
RE: Foxuser.dbf Posted by Yousfi Benameur @ 8/13/2008 5:05:20 PM