[dba-VB] VS2005: Storing application settings

Gustav Brock Gustav at cactus.dk
Fri Feb 29 11:31:04 CST 2008


Hi Charlotte

Thanks. I'll stick to that method.

/gustav

>>> cfoust at infostatsystems.com 29-02-2008 17:00 >>>
I don't know if it's THE answer, but it's the one we use.

Charlotte Foust 

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com 
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: Friday, February 29, 2008 5:59 AM
To: dba-vb at databaseadvisors.com 
Subject: Re: [dba-VB] VS2005: Storing application settings

Hi all

Again, pressing Send helps assimilation. 
Just browsed to the last paragraph of the link. Calling:

 
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationDat
a)

returns on my machine:

  "C:\\Documents and Settings\\All Users\\Application Data"

Is that the answer?

/gustav

>>> Gustav at cactus.dk 29-02-2008 14:22 >>>

  http://www.interact-sw.co.uk/iangblog/2004/11/25/savingconfig 

where the author claims that one should never write files into the
Program Files folder ..(!) .. but use the Application Data folder of the
user.
That may be true, and I sure want to behave, but the next question is
then: Where to store config files and such common for all users? Would
that be:

  C:\Documents and Settings\All Users\Application Data\YourApp

So, where do you store your application data common for all users?

/gustav






More information about the dba-VB mailing list