Hi!
I have one 2000 Server with Terminal Server, we use TS to connect different
locations to run FoxPro applications, the problem is that our application
generate special files on c:\temp and c:\repository. No more than one user
could connect to the application because the temp file was created by the
first user that connect to the TS.
Is possible to have "logical" or "something similar" for a c:\temp?
Thanks in advance,
Italo
TP - 29 Jul 2005 19:51 GMT
The default behavior is to have a unique temporary
folder for each session.
For example, if you were logged on as username italo,
session id 5, then it would work something like this:
TMP=C:\DOCUME~1\italo\LOCALS~1\Temp\5
TEMP=C:\DOCUME~1\italo\LOCALS~1\Temp\5
For this to work the application should call GetTempPath
(or equiv) function to retrieve the path for temporary files
and then use that path. If the application is hardcoded to
use c:\temp, then it will not work.
Has someone enabled flat temporary directories on your
TS, or changed the user environment variables for TMP
and TEMP?
You can check the status of the flat temp option by
typing the following at a command prompt:
flattemp /query
Thanks.
-TP
> Hi!
>
[quoted text clipped - 9 lines]
>
> Italo
Korstiaan - 31 Jul 2005 23:49 GMT
Hi Italo
You should have a look at SYS(2015) in Foxpro to create unique file
names.
OR
Use the getenv() function to get the SET TEMP= from the environment
Hardcoded filenames should be a NONO
Have fun
Korstiaan