469,644 Members | 1,982 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,644 developers. It's quick & easy.

Preferred file locations

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
Nov 2 '06 #1
4 961
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?
Nov 2 '06 #2
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
Nov 2 '06 #3
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:
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
Nov 2 '06 #4
"John Dann" <ne**@prodata.co.ukschrieb:
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/>

Nov 2 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

22 posts views Thread by Jane Withnolastname | last post: by
6 posts views Thread by Johnny van Cadsand | last post: by
3 posts views Thread by A_Republican | last post: by
reply views Thread by eholz1 | last post: by
reply views Thread by jephperro | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.