terminal services compatibility



My question involves writing an app to be compatible with Terminal
Services.

Some of our clients use Terminal Services on their network. In case you
aren't familiar with Terminal Services, what it does is runs the
application from a server, and each user has a mapped home directory to
store their files and settings in. So each user sees something like
W:\username for their home directory, when in reality, the directory is
on the server as \\myServer\profiles\home\username. The application's
exe files exists on the server, and runs on the server.

In my Delphi app, I have a couple of ini files, and a couple of
database
tables which hold settings for each user. These files need to be
avialable
for a particular user only. If the files don't exist, I need to create
a
fresh copy in the user's directory.

The way I would ordinarily do this is look for the path of the exe --
ExtractFilePath(Application.Exename) and store the ini and dbf files
there. But I can't do that with Teminal Services, since there is only
one exe.

After doing a bit of digging, I found that there appears to be an
environment variable called ROOTDRIVE which contains the mapped path
for the user (i.e., W:\username). So I guess that I can see if that
environment variable exists and use it if it does, and if it doesn't
use the path of the exename.

My question is then, do any of you have experience with this, and am I
on
the right track? Is there a recommended way of doing this kind of
thing?

-Corinna

.



Relevant Pages

  • Re: Prevent home drive mapping from appearing in terminal server
    ... but use different config files for each. ... drives on test server to a local path, ... you can use GPO to specifiy a TS home directory. ... > Your Terminal Services Security Website ...
    (microsoft.public.windows.terminal_services)
  • Re: Roaming Profile users having issues with Citirx App
    ... Your Terminal Services Security Website ... terminal server application. ... them use the app, had them log out and then log back in and the settings ...
    (microsoft.public.windows.terminal_services)
  • Re: Running app over Internet with TS
    ... To use Terminal Services, you need a Windows Server OS, TS licenses ... MS Access application accessible over the internet. ... then can TS provide me with an option to run the app over the Internet ...
    (microsoft.public.windows.terminal_services)
  • Re: When Do I Need a Server Back End?
    ... If your app is not already build on views, cursors or cursoradapter as data access you might have a nontrivial rewrite at hand otherwise. ... We currently have between 20 and 50 concurrent users on Terminal services and will quadruple that number (but need to buy a beefy new server). ...
    (microsoft.public.fox.programmer.exchange)
  • Tray Icon for multiple users
    ... I have made a C# executable that monitors the server it is placed on. ... owner is SYSTEM, so that when I log out of terminal services, the ... My question is how do I show this app to all users who terminal service ... The app resides in the system tray until you click on it, ...
    (microsoft.public.dotnet.languages.csharp)