|
<< Click to Display Table of Contents >> DbiSetPrivateDir |
![]() ![]()
|
C syntax
DBIResult DBIFN DbiSetPrivateDir (pszDir);
Delphi syntax
function DbiSetPrivateDir (pszDir: PChar): DbiResult stdcall;
Description
DbiSetPrivateDir sets the private directory for the current session.
Parameters
pszDir Type: pCHAR (Input)
Pointer to the full path name of the new private directory. Optional. If NULL, then the private directory is reset to the default startup directory.
Usage
Although DbiSetPrivateDir is specific to Paradox tables, it has one important use for all drivers: all temporary or auxiliary files are created in this directory by default. If no private directory is specified, then all temporary or auxiliary tables are created in the default startup directory. Examples of functions that may create temporary or auxiliary tables are DbiDoRestructure and DbiBatchMove.
If you want the private directory to be the same as the default working directory, you must explicitly set first the private directory, then set the default directory by using DbiSetDirectory.
Prerequisites
The directory must be available for exclusive access. No other BDE users can access the private directory.
DbiResult |
Meaning |
DBIERR_NONE |
The private directory was successfully set. |
DBIERR_DIRBUSY |
The specified directory is currently in use. |
See also