Preferred file locations

  • Thread starter Thread starter John Dann
  • Start date Start date
J

John Dann

Can anyone point me to a summary of recommended folder locations for
..Net applications to use for eg config files. (Or if it's simple just
spell them out please.)

I'm currently saving my programs' config and template files to the
application folder, which I'm sure has been deprecated for some time
but is maybe going to become more difficult under Vista?

JGD
 
John said:
Can anyone point me to a summary of recommended folder locations for
..Net applications to use for eg config files. (Or if it's simple just
spell them out please.)

In your applications folder - or, when using config files that are used
by more than one application the commonfiles folder (or, maybe better,
documentsandsettings\(all)user(s)\applicationdata
I'm currently saving my programs' config and template files to the
application folder,

Where they belong

which I'm sure has been deprecated for some time
but is maybe going to become more difficult under Vista?

JGD

Why should this be depreciated?
 
id suggest not saving to anywhere within the Program Files directory. From
what ive read, in Windows Vista, programs will be unable to write information
to the Program Files directory and any directory inside of it
 
That's a good one.

Allmost all vb2005 applications have an application.config file in the
application directory, which is usually in program files.

Can someone tell how this is solved?
 
John Dann said:
Can anyone point me to a summary of recommended folder locations for
.Net applications to use for eg config files. (Or if it's simple just
spell them out please.)

I'm currently saving my programs' config and template files to the
application folder, which I'm sure has been deprecated for some time
but is maybe going to become more difficult under Vista?

I suggest to check out the documentation on the values which can be passed
to 'System.Environment.GetFolderPath'. This method can even be used to
obtain the path of a special folder on the target system.
 
Back
Top