This commit is contained in:
2025-12-09 09:00:16 +00:00
parent 760987fa75
commit 03dfb3414b
10 changed files with 142 additions and 57 deletions

View File

@@ -1,4 +1,5 @@
using System.Diagnostics;
using System.Security.Principal;
namespace AiQ_GUI
{
@@ -25,6 +26,10 @@ namespace AiQ_GUI
{
try
{
WindowsPrincipal wp = new(WindowsIdentity.GetCurrent()); // Log in a seperate file when admin
if (wp.IsInRole(WindowsBuiltInRole.Administrator))
FileName = FileName.Replace(".log", "_ADMIN.log");
string logFilePath = LDS.MAVPath + FileName;
FileInfo fi = new(logFilePath);