I'm trying to locate the path for the AppDataLocalLow
folder.
I have found an example which uses:
string folder = "c:users" + Environment.UserName + @"appdataLocalLow";
which for one is tied to c:
and to users
which seems a bit fragile.
I tried to use
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
but this gives me AppDataLocal
, and I need LocalLow due to the security constraints the application is running under. It returned blank for my service user as well (at least when attaching to the process).
Any other suggestions?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…