为了账号安全,请及时绑定邮箱和手机立即绑定

如何在Windows启动时运行C#应用程序?

如何在Windows启动时运行C#应用程序?

C#
斯蒂芬大帝 2019-11-11 14:59:05
我制作了一个在启动期间启动的应用程序,下面是下面的代码。重新启动后,该进程将在进程管理器工具上运行,但是在屏幕上看不到该应用程序。当我从启动注册表值中打开相同的.exe文件时,程序运行完美。// The path to the key where Windows looks for startup applicationsRegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);// Add the value in the registry so that the application runs at startuprkApp.SetValue("MyApp", Application.ExecutablePath.ToString());我该如何解决?
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 623 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信