[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Terminal Services and temp files

Posted on 2004-11-05
Medium Priority
Last Modified: 2010-03-18
Hello all
Here's my problem.  I have an application on Terminal services server 2003 and when a user prints it creates a temporary word file.  The problem is that it only sees one user temp file so that one user can continue to print but nobody else can print because it thinks word is still open.  If I delete this temp folder than somebody else can print.  My question is how can I get the TS users there own temp directory so the temp file goes to that user instead of the application seeing it as only one user.  Thanks in advance.
Question by:jamesbryan2004
  • 3
  • 3

Expert Comment

ID: 12517810
Where is the application storing its temp files?
Are they in a system specified temp directory - eg C:\documents and settings\user\local settings\temp\
or is the application creat it's own temp folder inside the program folder - eg c:\application\temp\
There is a system variable for temp location and nice applications should use this instead of some hard coded location. Figure out which case you fall into and then we can possibly find some workaround.

if you open a command prompt and type
you will get a list of all the system variables, see if the one for temp or tmp matches the location of the temp file.

Author Comment

ID: 12523373
The application created it's own temp folder inside the program folder.  The fix was to give rights to the application folder so that people could write to this temp directory.  

Expert Comment

ID: 12525668
Is the application called "finance plus" by any chance?
Anyhoo.. what you might be able to use is a logon script and junction points.
It would allow you to point that temp folder to some other location. In the logon script you would use something like the username variable to give everyone their own temp folder and still keep the app working.
Have a look at these two sites.

I think you want to put something like this in a bat file in the login script for the terminal server:
md c:\mytemp\%username%
linkd c:\mytemp\%username% "c:\finance plus\temp"

Then delete it in the logoff script:
linkd c:\mytemp\%username% /d
rd /s /q c:\mytemp\%username%

You need the double quotes when the path has a space in it.
Let me know if you need help with the group policy to make this work. Maybe just test manually with two users first?
Oh, you could also use the %sessionname% variable in case people logged on twice.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Author Comment

ID: 12544745
No it's not finance plus it's an attendance program.  I'm pretty new to windows server We use novell except this application.  Is there a tid that you know of to help me create a login script and things?  Thanks.

Author Comment

ID: 12547738
I've used your login script but the linkd parameter fails.  It's not recognized as a command.  Thanks.

Accepted Solution

ccceqo2 earned 1400 total points
ID: 12552203
You will need to get the resource kit from http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en and put linkd.exe in a folder in the system path.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question