Home All Groups Group Topic Archive Search About

Preferred file locations

Author
2 Nov 2006 3:52 PM
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

Author
2 Nov 2006 5:43 PM
Theo Verweij
John Dann wrote:
> 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?
Author
2 Nov 2006 8:35 PM
iwdu15
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
--
-iwdu15
Author
2 Nov 2006 8:50 PM
Theo Verweij
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?

iwdu15 wrote:
Show quoteHide quote
> 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
Author
2 Nov 2006 11:09 PM
Herfried K. Wagner [MVP]
"John Dann" <n***@prodata.co.uk> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>