App_Data Folder and Windows Operating Systems

I have an VB.NET application that installs a DB to the App_Data folder and uses that variable in the code to locate the database.  It was written under XP.  We have recently installed it to a Vista machine, and the App_Data folder was finally found (after much searching) under the 'Users' folder.  Does anyone have a resource of information concerning how this varies from OS to OS?  Thanks.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I think  AppDomain.CurrentDomain.GetData("DataDirectory")  would get you the path regardless of  OS
Rather System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) since this is vb.
jigdogAuthor Commented:
Oh, I am getting the correct path in all instances ... but WHAT THAT PATH IS per each OS is the questions.  For example, in XP it tends to be:

C:\Program Files\MyProgram\AppData\

whereas in Vista, it is:


etc ... i was just wondering if there was a resource that would tell me exactly how each OS treats the AppData variable.
In Windows Vista and Windows Server "Longhorn", the default locations for user data and system data have changed. For example, user data that was previously stored in the %SystemDrive%\Documents and Settings directory is now stored in the %SystemDrive%\Users directory. In order to minimize the amount of application compatibility problems users would experience due to the change in folders names, such as C:\Documents and Settings moving to C:\Users, Microsoft employed junction points.  These junction points make it so that hard coded reads and writes to legacy file locations would automatically go to the correct new location without changing the application.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.