Windows启动时启动Myprograme [英] Start Myprograme when Windows is start

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

问题描述

你好

我想在Windows启动时启动我的程序.
具有哪个功能?
谢谢.

Hello

I want to start My Program when Windows has started.
With which Function?
Thanks.

推荐答案

你好萨桑

有办法.

一个好方法是创建Windows服务而不是普通应用程序.
查看此链接:在C#中创建Windows服务


或将程序添加到Registery:
Hello Sasan

There are ways.

A good way is create a Windows Service instead of a normal application.
Look at this link: Creating a Windows Service in C#


Or add your program to Registery:
RegistryKey add = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true); 
add.SetValue("YourProgram", "\"" + Application.ExecutablePath.ToString() + "\); 



更好的描述,请看以下内容:在Windows启动时运行应用程序
或这样: c#在启动时通过程序添加应用程序

或者...
为什么不搜索Google并找到数百万个链接?



Better description, Look at this: Run the application at Windows startup
Or this: c# Add application under startup through programme

Or ...
Why don''t you search google and find millions links?


这篇关于Windows启动时启动Myprograme的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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