V4.7
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user