By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,239 Members | 1,505 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,239 IT Pros & Developers. It's quick & easy.

Preferred file locations

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
"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.