jigdog
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.
I think AppDomain.CurrentDomain.Ge tData("Dat aDirectory ") would get you the path regardless of OS
Rather System.Environment.GetFold erPath(Env ironment.S pecialFold er.Applica tionData) since this is vb.
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\ApplicationD ata\AppDat a\
etc ... i was just wondering if there was a resource that would tell me exactly how each OS treats the AppData variable.
C:\Program Files\MyProgram\AppData\
whereas in Vista, it is:
C:\Users\blah\ApplicationD
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.