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?
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.
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.