如何把exe文件在Windows启动 [英] How to put exe file in windows Startup

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

问题描述

我有WPF应用程序。我想给把应用程序(EXE文件),在Windows启动能力,为用户通过复选框。我怎样才能做到这programmaticaly在C#?

I have WPF Application. I want to give ability for user by checkbox to put App (exe file) to the windows Startup. How Can I do this programmaticaly in C#?

推荐答案

您将需要添加应用程序到 HKCU在注册表\Software\Microsoft\Windows\CurrentVersion\Run 键。请参阅本在C#中的例子:管理启动

You will need to add the application to the HKCU\Software\Microsoft\Windows\CurrentVersion\Run key in registry. See this for an example in C#: Managing Start-up

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

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