PC Review


Reply
Thread Tools Rate Thread

Different C:\temp for each TS session

 
 
Italo Bozzi
Guest
Posts: n/a
 
      29th Jul 2005
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


 
Reply With Quote
 
 
 
 
TP
Guest
Posts: n/a
 
      29th Jul 2005
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

Italo Bozzi wrote:
> 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

 
Reply With Quote
 
Korstiaan
Guest
Posts: n/a
 
      31st Jul 2005
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete some temp files at the end of a session David Hearn Microsoft ASP .NET 2 25th May 2004 02:46 PM
Dynamic temp. datagrid col.gen. -Session access inside a class inside a UserCtrl Andy Eshtry Microsoft ASP .NET 0 1st Mar 2004 11:48 PM
Dynamic temp. datagrid col.gen. -Session access inside a class inside a UserCtrl Andy Eshtry Microsoft Dot NET 0 1st Mar 2004 11:47 PM
Dynamic temp. datagrid col.gen. -Session access inside a class inside a UserCtrl Andy Eshtry Microsoft C# .NET 0 1st Mar 2004 11:47 PM
Dynamic temp. datagrid col.gen. -Session access inside a class inside a UserCtrl Andy Eshtry Microsoft VB .NET 0 1st Mar 2004 11:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:02 PM.