terminal services compatibility
- From: "swansnow" <schultz@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: 25 Aug 2005 06:58:29 -0700
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
.
- Follow-Ups:
- Re: terminal services compatibility
- From: pr
- Re: terminal services compatibility
- Prev by Date: Re: !! Help !! Finding an open range within a range of numbers
- Next by Date: OOP style
- Previous by thread: Clipboard local copy
- Next by thread: Re: terminal services compatibility
- Index(es):
Relevant Pages
|