Getting HDD-Path by Alias 
Author Message
 Getting HDD-Path by Alias

Hi there,

a little problem:

How am I able to get the exact Drive-Path by a known BDE-Alias (Paradox)?

Any suggestions?

Bye,
        Christian Hartmann

The killer B's...Braves, Beer and Borg



Wed, 18 Jun 1902 08:00:00 GMT
 Getting HDD-Path by Alias

Quote:

> Hi there,

> a little problem:

> How am I able to get the exact Drive-Path by a known BDE-Alias (Paradox)?

> Any suggestions?

> Bye,
>         Christian Hartmann

> The killer B's...Braves, Beer and Borg



Wed, 18 Jun 1902 08:00:00 GMT
 Getting HDD-Path by Alias

Quote:

> Hi there,

> a little problem:

> How am I able to get the exact Drive-Path by a known BDE-Alias (Paradox)?

> Any suggestions?

> Bye,
>         Christian Hartmann

> The killer B's...Braves, Beer and Borg

Hi Christian,

If you want to get the path specified in an alias try this.

function TForm1.GetAliasPath(AliasName : String):string;
var lst : TStrings;
begin
     lst := TStringlist.create;
     Session.GetAliasParams(AliasName, lst);
     result := copy(lst.strings[0], 6, length(lst.strings[0]));
     lst.free;
end;

This is how I extract the path for an alias.

Try it out.

Cheers  Darren Olm



Wed, 18 Jun 1902 08:00:00 GMT
 
 [ 3 post ] 

 Relevant Pages 

1. Getting Long File Path from short Path / File Name

2. Extracting path from BDE alias or database?

3. Reading the database path from the BDE Aliases

4. Different access path when going through alias?

5. BDEAdmin refuses to Edit Alias-PATh!

6. How to use aliases in a search paths

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

8. aliases path at run time

9. how to get BDE Alias path

10. gettting BDE alias path

11. Alias path

12. Extract full path for alias : how?


 
Powered by phpBB® Forum Software