Skip to content

Commit

Permalink
시작 프로그램 등록이 제대로 되지 않던 문제 수정
Browse files Browse the repository at this point in the history
경로에 띄어쓰기가 있으면 인식을 제대로 못 했음
  • Loading branch information
mijien0179 committed Jun 5, 2022
1 parent 483d875 commit a717574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pctory/Setting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static string LogSaveLoc

public static void SetStartup()
{
Process.Start("cmd", $"/c schtasks -create /sc onlogon /tn \"\\pctory\\autorun\" /tr \"{Application.ExecutablePath} --autorun\" /RL HIGHEST");
Process.Start("cmd", $"/c schtasks -create /sc onlogon /tn \"\\pctory\\autorun\" /tr \"'{Application.ExecutablePath}' '--autorun'\" /RL HIGHEST");
}

public static void ResetStartup()
Expand Down

0 comments on commit a717574

Please sign in to comment.