프로그램을 컴퓨터 부팅시 자동실행 하게 해주는 메서드


프로그램을 컴퓨터 부팅시 자동실행 하게 해주는 메서드

/************** 1번째 방법 소스 ******************/ public static bool set_rows(bool sr) // 자신이 설정할 메서드여도 됨 { using (var key = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true)) { if (sr == true) { key.SetValue("자신의 프로그램 이름", Application.ExecutablePath); MessageBox.Show("시작 프로그램에 등록되었습니다. 다음부터 컴퓨터 시작시 자동으로 켜집니다.", "설정완료", MessageBoxButtons.OK, MessageBoxIcon.Information); return true; } else { key.DeleteValue("자신의 프로그램 이름", false); MessageBox.Show("시작 프로그램에서 삭제되었습...



원문링크 : 프로그램을 컴퓨터 부팅시 자동실행 하게 해주는 메서드