<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Default Directory</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">How can you set the directory used for the temporary dbf file for a TQuery component? </FONT>
<BR><FONT SIZE=2 FACE="Arial">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.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">The application is on a drive E and data via a unc path and we are mapping an I drive on logon.</FONT>
<BR><FONT SIZE=2 FACE="Arial">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.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Can anyone please point me in the right to direction to fix this issue.</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Regards</FONT>
<BR><FONT SIZE=2 FACE="Arial">Eion McIntosh</FONT>
<BR><FONT SIZE=2 FACE="Arial">PPCS Ltd</FONT>
</P>
</BODY>
</HTML>