How to get Windows\system32\config\systemprofile\AppData\Local\ folder path in C#?

Andrei Karcheuski picture Andrei Karcheuski · Dec 3, 2014 · Viewed 7.2k times · Source

What is the best way to get this folder path programmatically : Windows\system32\config\systemprofile\AppData\Local ?

Answer

user4291562 picture user4291562 · Dec 3, 2014

I can't write comments sorry. What are you using the path for? Where is the application stored? This will get you there??

string path = "C:\\Windows\system32\config\systemprofile\AppData\Local";

Provided C: is the name of the drive.

You really need to expand on your question a little bit.

Is this a duplicate question??

How to read existing text files without defining path