Link to home
Start Free TrialLog in
Avatar of jigdog
jigdogFlag for United States of America

asked on

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.
Avatar of 13598
13598
Flag of United States of America image

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.
Avatar of jigdog

ASKER

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:

C:\Users\blah\ApplicationData\AppData\

etc ... i was just wondering if there was a resource that would tell me exactly how each OS treats the AppData variable.
ASKER CERTIFIED SOLUTION
Avatar of 13598
13598
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial