How to get the AppData folder in C# under Windows 10

1.9k Views Asked by At

I have always gotten the AppData folder using

Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)

However, on my Windows 10 test machine this returns "C:\Users\User\AppData\Roaming" not "C:\Users\<user>\AppData\Roaming" as on all other versions of Windows.

What do I need to call for Windows 10?

0

There are 0 best solutions below