[dba-VB] VS2005: Storing application settings

Charlotte Foust cfoust at infostatsystems.com
Fri Feb 29 10:00:48 CST 2008


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



_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com





More information about the dba-VB mailing list