Terminal Services and temp files

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.
jamesbryan2004Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ccceqo2Commented:
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
set
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.
0
jamesbryan2004Author Commented:
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.  
0
ccceqo2Commented:
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.
http://support.microsoft.com/?kbid=205524
http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/techref/en-us/Default.asp?url=/Resources/Documentation/windowsserv/2003/all/techref/en-us/linkd.asp

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.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

jamesbryan2004Author Commented:
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.
0
jamesbryan2004Author Commented:
I've used your login script but the linkd parameter fails.  It's not recognized as a command.  Thanks.
0
ccceqo2Commented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.