Different C:\temp for each TS session

I

Italo Bozzi

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
 
T

TP

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
 
K

Korstiaan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top