Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change Alias directory

Status
Not open for further replies.

rogerte

Programmer
Nov 9, 2001
164
GB
I have an inherited several apps that read Paradox tables from a network drive. No problem, but now the client wants to be able to access the network data whilst the laptop, it is on, is connected to the network, but access local copies of the data when on the move.

I havn't got all the source to all the apps concerned, so I was wondering if it is possible to write a program to change the Alias path, and netdir, in IDAPI.CFG. e.g.
Using the Network :alias path T:\program\data, netdir T:Using local drive: alias path C:\Program\data, netdir C:
I have looked at the BDE programming, but can see how to read that info. but not write it

The alternative appears to have 2 copies of IDAPI.CFG and rename each of them to IDAPI.CFG as required, but this is "messy".

Thanks for any help received
 
why not just make two aliases and use one or another depending on the network connectivity
 
DaZZleD

Unfortunately I don't have source to some of the programs that need running against the data, and it appears the programmer has used a common data unit in all the programs, and these have the Alias set against the TTable components.

Could do for those that we have the source for, but leaves the others ready for crashing!

Roger
 
then I guess that the best choice is to have 2 copies for the IDAPI.CFG...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top