On 2019-08-05 15:58, 'Zoran' zoran...@gmail.com [firebird-support] 
wrote:
> What Dimitry said, or you can try this:
> 
> 
> 
> 
> 
> function _GetAliasDBFName(alias): string;
> 
>   var
> 
>     sl: TStringList;
> 
>   begin
> 
>     result := '';
> 
>     sl := TStringList.Create;
> 
>     try
> 
>       sl.LoadFromFile('C:\Program 
> Files\Firebird\Firebird_3_0\databases.conf');
> 
>       result := sl.Values[alias];
> 
>     finally
> 
>       sl.Free;
> 
>     end;
> 
>   end;
> 
> 
> 
> Simply call _ GetAliasDBFName and pass your alias name as a param.
> Problem might arise if FB team chooses to change name of database.conf
> file, or re-allocate it.

That doesn't work remote, nor will it work if the user running this 
doesn't have read access to databases.conf.

Mark
  • [firebird... Zsazsi m-zs...@freemail.hu [firebird-support]
    • [fir... 'P-Soft - Fabio Codebue' f.code...@p-soft.biz [firebird-support]
      • ... Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
      • ... 'Zoran' zoran...@gmail.com [firebird-support]
        • ... Elmar Haneke el...@haneke.de [firebird-support]
        • ... Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
          • ... 'Zoran' zoran...@gmail.com [firebird-support]
    • Re: ... Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
      • ... m-zs...@freemail.hu [firebird-support]
        • ... DougC d...@moosemail.net [firebird-support]
        • ... Elmar Haneke el...@haneke.de [firebird-support]

Reply via email to