If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Corel Paradox > write to idapi32.cfg using vbscript/installscript/...?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-30-04, 10:21
cmose cmose is offline
Registered User
 
Join Date: Apr 2004
Posts: 16
write to idapi32.cfg using vbscript/installscript/...?

hello,
does anyone know if it is possible to write to the idapi32.cfg file using vbscript or something? I have a product that installs the bde but I need to dynamically write the netdir setting based on where a user chooses to install some components. I've tried using vbscript and opening the file as if it were a text file but that hoses the entire file. Any suggestions? (I realize that it is possible to do this via delphi or paradox/objectpal, but I am looking for a way to do this from another programming language/scripting language which looks like it might not be possible). Barring that is it possible to use a relative path for the netdir setting rather then an absolute path?

thanks much.

Last edited by cmose; 07-30-04 at 10:34.
Reply With Quote
  #2 (permalink)  
Old 08-02-04, 15:02
Shores Shores is offline
Registered User
 
Join Date: Aug 2003
Location: Bologna - Italy
Posts: 209
You don't need to do it: Simply rename the idapi32.cfg to .old and the bde will use registry settings instead!

Here you can find the registry key containing the net dir setting:

[HKEY_LOCAL_MACHINE\Software\Borland\Database Engine\Settings\DRIVERS\PARADOX\INIT]
"NET DIR"="C:\\"

Bye!
__________________
The only failure is not trying to do it.
Reply With Quote
  #3 (permalink)  
Old 08-02-04, 16:27
cmose cmose is offline
Registered User
 
Join Date: Apr 2004
Posts: 16
thanks much,
I assumed there was a way to set it in the registry, just didn't realize that the idapi32 file had to be not present or renamed.
thanks much.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On