[dba-VB] VS2005: Storing application settings

Gustav Brock Gustav at cactus.dk
Fri Feb 29 07:58:40 CST 2008


Hi all

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

  Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)

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