如何在Windows启动时运行C#程序 [英] How to run a c# program in windows start up

查看:181
本文介绍了如何在Windows启动时运行C#程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



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


在此先感谢



How to run a c# program in windows start up


thanks in advance

推荐答案

最简单的选择是将程序的快捷方式放在启动文件夹中(在开始菜单中).

其他更复杂的方法是使用Windows服务等.
The easiest choice is to place a short cut of the program in the startup folder (in start menu).

Other more complex approaches would be to use Windows Services etc.


如果要在Windows启动时运行程序,请将应用程序创建为服务,然后将其设置为自动启动.

如果您希望应用程序在用户登录时启动,则可以在开始"菜单的启动文件夹中定义它,或例如将其放入注册表的
If you want to run the program when windows starts, create your application as a service which then is set to start automatically.

If you want the application to start when user logs in, you can define it in startup folder of Start menu or for example put it into
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

中.


这篇关于如何在Windows启动时运行C#程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆