Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows 2000 / Terminal Services / July 2005

Tip: Looking for answers? Try searching our database.

Different C:\temp for each TS session

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Italo Bozzi - 29 Jul 2005 18:50 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.