Subject |
Re: SET PATH TO C:\\OPD |
From |
Mustansir Ghor <mustan31@hotmail.com> |
Date |
Mon, 23 Apr 2018 05:25:05 -0400 |
Newsgroups |
dbase.getting-started |
Attachment(s) |
Capture 5.PNG |
Dear Andy
Thank you. But Option 2 it does not work.
I have start_up.prg file where I have put SET PATH to c:\OPD
After compilation , the target has only 2 files mustan.exe and mustan.ini stored in c:\OPD1. Running mustan.exe it fails to access tables and searches in c:\OPD1. Even the form that generates error is refereed in the target directory (Capture 5), i dont know why?
I dont know what to to do. but I feel I am missing out something
Regards
Mustansir
Andy Taylor Wrote:
> Mustansir,
>
> You have two clear options.
> 1) The ini file. Just make sure it\'s in the ini that your exe uses.
> 2) In your program setup file, before you try to open any tables not in the exe folder.
> I would use option 2
> Andy
>
> > Dear Andy
> >
> > where to define I mean, where to put SET PATH TO command
> >
> > Mustansir
> >
> > Andy Taylor Wrote:
> >
> > > Mustansir,
> > > Yes. that should work without problems as you expect it to.
> > > Andy
> > >
> > > > Dear Andy
> > > >
> > > > My program is using both OODML and XDML commands. I at moment am using dbf tables for data management. Most of my queries access tables directly. I do not specitfy full path to tables , and expect to search from SET PATH TO (I used to this in Dbase IV). there are some tables to be used in exclusive mode which i keep in local folder.
> > > >
> > > > I want this scenario to work at moment with EXE file while I redefine my tables to be associated with database.
> > > >
> > > > Best Regards
> > > > Mustansir
> > > >
> > > > Andy Taylor Wrote:
> > > >
> > > > > Mustansir,
> > > > >
> > > > > The \"set path to\" command merely gives an alternative place to find files that are not in the current folder.
> > > > > Note that the presence of your compiled exe within c:\\OPD1 does not guarantee that the \"current folder\" is c:\\OPD1.
> > > > > You can check by putting msgbox(set(\"directory\")) in your startup file.
> > > > > By the way, you don\'t state what your problem is; so I\'m only guessing at it.
> > > > >
> > > > > Andy
> > > > >
> > > > > > Dear All
> > > > > >
> > > > > > My compiled exe file is in C:\\OPD1. In my startup prg file if I put following command SET PATH TO C:\\OPD, does it not mean that all tables that are in the prg file OR in all subsequent forms called from prg will be (if not associated with database) searched first in the current folder and if not found will be searched in the folder defined by SET PATH TO C:\\OPD.
> > > > > >
> > > > > > Best Regards
> > > > > > Mustansir
> > > > >
> > > >
> > >
> >
>
|
|