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 +}