I’m getting the error “Access to the path ‘LocalApplicationData\MyProgram\’ is denied.” when trying to create a directory for my log file. This is when I’m running the program as a non-admin user.
Directory.CreateDirectory(System.Environment.SpecialFolder.LocalApplicationData + "\\MyProgram\\");
Why would this be?
Thanks
LocalApplicationDatais just an enum value. You will have to use it in combination withGetFolderPath: