Re: terminal services compatibility



OK, let me try again. Sorry I was unclear.

I am writing a program that needs to run on both a normal windows
system and a terminal services system. In order to save user-specific
settings, I have an ini file and a database table (dbf). In a normal
system, the exe is on the user's computer, and the program puts these
files in the exe directory, and the program can always access them at
that location.

In a terminal services system, the admin has created folders for each
user, and mapped it to a drive letter (like W). When the user runs the
program, the exe is located on the network, not on their computer, so
multiple users can be running the same exe at the same time. If I save
their settings in the exe folder, the files will get overwritten by
other users. So their settings need to be kept in their working
folders (which the admin has already created), not the exe folder.

The program needs to be able to detect if the user is running on a
terminal services system, in order to decide whether to use the exe
folder, or whether to use the user's working folder. The program needs
to be able to figure out what the user's working folder is, in order to
read and write to those settings files.

It seems to me that maybe I can use the ROOTDRIVE environment variable,
but I'm not sure if this is a good way to solve this problem. I
currently don't have a terminal services system to test on, so I don't
even have a good way to try things out right now. I'm trying to
research the problem because it isn't clear to me what to do.

-Corinna

.



Relevant Pages

  • Re: Using appSettings
    ... Configuration files need to be in the same folder as the EXE and have the ... > I have a console app and would like it to pick up some settings from the ...
    (microsoft.public.dotnet.languages.vb)
  • Question regarding deploying multiple libraries assemblies, each one with its own app.config file
    ... A utility library project (various generic code). ... app.config settings file with various settings ... folder of my exe, and also there I find myapp.exe.config, which is the ... app.config for my final exe. ...
    (microsoft.public.dotnet.framework.setup)
  • Re: TS setup for multiple users
    ... All users run the same .exe file. ... while the server is in *install mode*. ... MCSE, CCEA, Microsoft MVP - Terminal Server ... folder where the EXE is located. ...
    (microsoft.public.windows.terminal_services)
  • Re: TS setup for multiple users
    ... while the server is in *install mode*. ... MCSE, CCEA, Microsoft MVP - Terminal Server ... folder where the EXE is located. ...
    (microsoft.public.windows.terminal_services)
  • Re: ClickOnce local cache with no shortcut in the start menu
    ... Each time the clickonce installs it creates a new folder and keeps the old version there. ... There is a data folder for your data files...and the non data folder will be your exe. ... One way to do it as well...is once you find your exe, check to see what version the exe is ...or include a dummy text file with every install that has the "date of release". ...
    (microsoft.public.dotnet.general)