Reading the database path from the BDE Aliases 
Author Message
 Reading the database path from the BDE Aliases

I am trying to get the directory where the tables in a specific database
are stored so as to copy all the files to a floppy disk.  The files
could be stored anywhere at install but the BDE alias holds the
pathname.  I am trying to get the path out of the AliasParams property
of the delphi created TSession component.  The docs say that is is a
global variable Session but I cannot seem to access it. Any insight
would be appreciated

thanks

jack



Mon, 12 Jul 1999 03:00:00 GMT
 Reading the database path from the BDE Aliases

I believe this works on Window NT platforms but not on win95 platforms.
We had a program that used the path to calculate another, but the program
never worked with Win95.

The line of said code was

   dbAlias.Params.Value['PATH']

I have no idea if this helps, it's more of an observation.

Dan Collins



Quote:
> I am trying to get the directory where the tables in a specific database
> are stored so as to copy all the files to a floppy disk.  The files
> could be stored anywhere at install but the BDE alias holds the
> pathname.  I am trying to get the path out of the AliasParams property
> of the delphi created TSession component.  The docs say that is is a
> global variable Session but I cannot seem to access it. Any insight
> would be appreciated

> thanks

> jack



Tue, 13 Jul 1999 03:00:00 GMT
 Reading the database path from the BDE Aliases



Quote:
> I am trying to get the directory where the tables in a specific database
> are stored so as to copy all the files to a floppy disk.  The files
> could be stored anywhere at install but the BDE alias holds the
> pathname.  I am trying to get the path out of the AliasParams property
> of the delphi created TSession component.  The docs say that is is a
> global variable Session but I cannot seem to access it. Any insight
> would be appreciated

> thanks

> jack

Perhaps this code would help:

var
  i : Integer;
  lines : TStringList;
  path : string;
begin

  lines:=TStringList.Create;
  Session.GetAliasParams('FAKTURA',lines);
  for i:=0 to lines.count-1 do
  begin
    if Copy(lines[i],1,5)='PATH=' then
      path:=Copy(lines[i],6,255);
  end;
  lines.Free;

end;

        /Tomas



Tue, 13 Jul 1999 03:00:00 GMT
 Reading the database path from the BDE Aliases

I use a TDatabase component to point to different file sets in various
locations then I maintain a list of the TDatabase objects and pass these to
a 3rd party backup control which uses a TMemo to contain a line for each
file set for each TDatabase from the PATH variable.  The backup to floppy
control works great.  Spans multiple disks, LZ compression support, etc...
Real handy.



Quote:
> I am trying to get the directory where the tables in a specific database
> are stored so as to copy all the files to a floppy disk.  The files
> could be stored anywhere at install but the BDE alias holds the
> pathname.  I am trying to get the path out of the AliasParams property
> of the delphi created TSession component.  The docs say that is is a
> global variable Session but I cannot seem to access it. Any insight
> would be appreciated

> thanks

> jack



Wed, 14 Jul 1999 03:00:00 GMT
 Reading the database path from the BDE Aliases

On 25 Jan 1997 06:12:29 GMT, "James R Anderson"

Quote:

>I use a TDatabase component to point to different file sets in various
>locations then I maintain a list of the TDatabase objects and pass these to
>a 3rd party backup control which uses a TMemo to contain a line for each

  ^^^^^^^^^^^^^^^^^^^^^^
               ???

Quote:
>file set for each TDatabase from the PATH variable.  The backup to floppy
>control works great.  Spans multiple disks, LZ compression support, etc...
>Real handy.

Hi,

Could you tell me which backup control you are using ?

Thanks !

Thomas Marti




Sat, 17 Jul 1999 03:00:00 GMT
 
 [ 5 post ] 

 Relevant Pages 

1. Extracting path from BDE alias or database?

2. Change path of BDE-alias at run-time

3. gettting BDE alias path

4. how to get BDE Alias path

5. Reading Path to an Alias

6. Help needed.......creating aliases for database paths??????

7. BDE Alias's and new installs of the BDE

8. How to get the path from an alias

9. Alias Path?

10. Getting HDD-Path by Alias

11. Finding the path for an alias

12. aliases path at run time


 
Powered by phpBB® Forum Software