Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find out local settings folder of current user?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00806614
Message ID:
00806643
Views:
17
This message has been marked as the solution to the initial question of the thread.
Hi Eric,

Look at System.Environment.GetFolderPath()


>Hello everyone,
>
>I am writing an application with C#.Net and I plan on using an XML configuration file to read and write to. I would like to keep a separate file for each user on a computer and therefore store in their "Documents and Settings\\Local Settings\Application Data\" folder. Is there a function that returns the URL for the local settings folder for the user currently logged in? Or would I have to find out who the user is and concatenate it onto the hardcoded URL of the "Documents and Settings" folder? If I have to do the latter, what is the best way of doing it? Thanks for time and help!
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform