From 023d3fbf6fd211904a4bf64529a1cd072616ce5d Mon Sep 17 00:00:00 2001 From: ShH Y <74806550+1208nn@users.noreply.github.com> Date: Sat, 16 Mar 2024 11:38:41 +0800 Subject: [PATCH] Update Utile.cs --- v2rayN/v2rayN/Common/Utile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2rayN/v2rayN/Common/Utile.cs b/v2rayN/v2rayN/Common/Utile.cs index 2b13d862..13e0b0e3 100644 --- a/v2rayN/v2rayN/Common/Utile.cs +++ b/v2rayN/v2rayN/Common/Utile.cs @@ -1136,7 +1136,7 @@ namespace v2rayN task.Settings.ExecutionTimeLimit = TimeSpan.Zero; task.Triggers.Add(new LogonTrigger { UserId = logonUser, Delay = TimeSpan.FromSeconds(10) }); task.Principal.RunLevel = TaskRunLevel.Highest; - task.Actions.Add(new ExecAction(deamonFileName)); + task.Actions.Add(new ExecAction(deamonFileName, null, Path.GetDirectoryName(deamonFileName))); taskService.RootFolder.RegisterTaskDefinition(TaskName, task); } @@ -1186,4 +1186,4 @@ namespace v2rayN #endregion Windows API } -} \ No newline at end of file +}