Stewart Saathoff wrote:
Well, that was the entire thing. I want users to be able to change
the path dynamically. What do you do in the case of CTX???
Like I said, you need to keep a separate config file for user settings. The
reason for this is two fold:
1) Security Settings - corporate user's often don't have access to change
files outside of their own personal folder (i.e. can't modify app.config
in program files)
2) Multiple Users - if the machine is used by more than one user, they might
have different settings. So, if you kept the settings in one file, user A
would override user B's settings. Or, worse, user A might see user B's sensitive
settings.
So for storing the custom config file you can use Isolated Storage (which
has a nice side effect of setting your app for SmartClient usage), or you
can use Environment.GetFolder with Environment.SpecialFolder.ApplicationData
and throw a custom directory in there for your product. Either way, the file
is specific to the user and you don't have to worry about security/multiple
users.
HTH,
Dre