Finding the user's Application Data directory using VB.Net

L

Luft

Is there a better way to find the path to the user's "Application
Data" directory (Windows XP) than building a string that concatenates
"C:\Documents and Settings\" with Environment.UserName and then
"\Application Directory\"? (VB.Net VS 2005)

I'm storing ribbon configuration files for each user there. All
worked well until we had a user that changed her name though marriage
so the system administrators did their magic with active directory and
renamed her account instead of deleting it and creating a new
account. So her logon name changed but the her user directory name
remained the same. Other programs use the "Application Directory"
directory to store configuration information and they still work but
my low tech approach failed miserably.

Can someone give me a clue to a more robust way of doing this?

Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top