something like
Session.PrivateDir := PrivDir;
is probably what you are after. This is using the default session, you
can make use of a TSession component also.
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington
Eion McIntosh (Christchurch) wrote:
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
------------------------------------------------------------------------
_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi