I currently store my log file in the Program Files\My App folder but some users don't have permission to write here if they are not a power user or administrator. Is there a common location for this type of log file?
Thanks
I currently store my log file in the Program Files\My App folder but some users don't have permission to write here if they are not a power user or administrator. Is there a common location for this type of log file?
Thanks
Forgot to say that I'm currently using Application.StartupPath.
logFileLocation = System.Windows.Forms.Application.StartupPath;
Thanks
I would use the temporary folder.
Use the function GetTempPath on the Windows API, or Path.GetTempPath in .NET
I'd use Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) and then Path.Combine that with ApplicationName\Version\LogFileName