17
Jun
Looking for user application data path
Today I was looking for user application data path (Application.UserAppDataPath) but without creating the Base PathCompanyNameProductNameProductVersion structure. I was really confused with this, but suddenly I found the solution. (ok, you’re right, I should use google prior to surfing in documentation
) The Environment.SpecialFolder enumeration and Environment.GetFolderPath – it’s so easy.
So the result is:
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
or maybe better for you:
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)+Path.DirectorySeparatorChar



There's 0 Comment So Far
Share your thoughts, leave a comment!