var reg = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
                    if (reg.GetValue(_notify.Text) == null)
                    {
                        reg.SetValue(_notify.Text, Application.ExecutablePath);
                        Console.Out.WriteTip("开机启动 Ok.");
                    }
                    else
                    {
                        reg.DeleteValue(_notify.Text, false);
                        Console.Out.WriteTip("开机禁止 Ok.");
                    }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
猜你喜欢
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-07-10
  • 2021-11-22
相关资源
相似解决方案