[DUG] Default Directory
Eion McIntosh (Christchurch)
e.mcIntosh at ppcs.co.nz
Thu Aug 25 12:34:12 NZST 2005
Hi
How can you set the directory used for the temporary dbf file for a TQuery component?
We have an application with an enquiry screen using the TQuery component to run a query over a database and is used to display the results of that query. By default it creates the this temporary file in the direction our application is running from. This directory has the application and database files in it. This is fine, but we are trying to have the program run via terminal services and the application directory and database files are on different servers and directory structures. I can't see any setting in the parameters for TQuery were I can set to directory it is to use.
I was assuming that it program would create this temporary file in the directory the application is running from, but instead it is trying to create it on a drive which we are not setting up as part of the users login script. Our enquiry screen is then failing because it can't read or write to this directory.
The application is on a drive E and data via a unc path and we are mapping an I drive on logon.
I've viewed the getcurrentdir field and it says H:, which is were it if trying to write this temporary file. I've tried doing a setcurrentdir to a different directory with the correct rights but it does change.
Can anyone please point me in the right to direction to fix this issue.
Regards
Eion McIntosh
PPCS Ltd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20050825/a49e8a49/attachment.html
More information about the Delphi
mailing list