Application writes to a temp files on c:\, need folder redirection util or something

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to install an aplication that when run places temp files in a sub folder on C:\, the application is to be used by terminal server clients. You can see the problem, users overwriteing each others temp files.

If I could only create a vurtual directory on the c:\ drive for each user that resolved to a unc. I wish I could find a utility to do this..
or
If I could reinstall my server so there is no C:\ drive, I've tryed but to no avail the system volume seems to always be C:\.
If there was no c:\ drive I could map the c:\ drive for each user to a share or use subst

I know the system does some redirection, the windows folder, the temp folders parts of the registry and such. I can't find much information about this or how I may be able to utilize that funtionality to my advantage. I would love to lurn more about the virutaly remaps of the registry and folders that make terminal server work in the first place but I can not find anything on the topic! Is this some kind of secret?

There must be a way.. if not I will make one.
Any infromation or resources on the topic would be wonderfull as my digging has turned up vary little usefull information.
-Brian Smith
 
If your application uses a hardcode path like C:\app_folder. then
there is not much you can do. It simply means that the application is
not TS compatible. What it *should* do is use the environment
variable %temp%, which is specific for each user session.

The only way that I can think of that *might* work is to carefully
adjust the NTFS permissions on the hardcoded folder C:\app_folder.

Give all users the right to add files to the folder, but don't give
them the right to modify or delete existing files. You can do this in
Advanced Security settings on the folder (Right: Add files and
folders; Apply to: this folder only).
Give administrators and CREATOR OWNER full control over the folder
and all files and subfolders.
When user1 creates c:\app_folder\file1, he becomes the CREATOR OWNER
and has the right to modify and delete the file. User2 will be able
to create C:\app_folder\file2, but not overwrite or modify file1.
 
Brian.

A few ways to make an application compatable:

1. Modify the regisrty or INI file setting that points to
c:\App_folder so that it points to the users home directory.

2.Look into "Application compatabilty scripts" Dir in WINNT. While
writing a ACS is not nearly as easy it would also fix the App.

3. if it is a registry key you could write a GPO to midify the key.

4. check out regset by tricerat.com (this sets reg keys when users log
on)

Sorry I can't be more specific but writing an ACS is more hands on...

Hope this helps

Tony

www.ccaheaven.com

BrianSmith said:
I need to install an aplication that when run places temp files in a sub folder on C:\, the application is to be used by terminal server clients. You can see the problem, users overwriteing each others temp files.

If I could only create a vurtual directory on the c:\ drive for each user that resolved to a unc. I wish I could find a utility to do this..
or
If I could reinstall my server so there is no C:\ drive, I've tryed but to no avail the system volume seems to always be C:\.
If there was no c:\ drive I could map the c:\ drive for each user to a share or use subst

I know the system does some redirection, the windows folder, the
temp folders parts of the registry and such. I can't find much
information about this or how I may be able to utilize that
funtionality to my advantage. I would love to lurn more about the
virutaly remaps of the registry and folders that make terminal server
work in the first place but I can not find anything on the topic! Is
this some kind of secret?
 
Back
Top