当我的电脑开启时,C#应用程序会自动在后台启动 [英] When my computer is turn on C# application automatically start in background

查看:102
本文介绍了当我的电脑开启时,C#应用程序会自动在后台启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨每一个。

我使用c#Windows表单应用程序制作提醒应用程序

现在我想要当我的计算机开启时我的应用程序会自动开始在后台运行

任何人告诉我该怎么办呢

提前致谢。



我是什么尝试过:



我不知道怎么办

hi every one.
I Make a Reminder application using c# Windows form application
Now i want when my computer is turn on my application is automatically start running in background
any one tell me how can i do this
Thanks in advance.

What I have tried:

I have no idea how can i do this

推荐答案

你可以尝试使用Windows任务计划程序。这是一个例子。



如何使用任务计划程序创建基本任务,分为5个步骤数字公民 [ ^ ]
You can try to use Windows Task Scheduler. Here is an example.

How to create basic tasks with Task Scheduler, in 5 steps | Digital Citizen[^]


Windows启动时无法启动。您将不得不等到用户登录。



您可以使用任务计划程序执行此操作,也可以从Run键启动应用程序在HKEY_LOCAL_MACHINE或HKEY_CURRENT_USER下的注册表中:\软件\ Microsoft \ Windows \ CurrentVersion \运行。



如果在LOCAL_MACHINE下,该应用程序将运行任何登录机器的人。如果在CURRENT_USER下,它将仅为您在设置注册表值时当前登录的用户运行。
Your will not start when Windows starts. You're going to have to wait until the user logs on.

You can either use the Task Scheduler to do this or you can launch your app from the Run key in the Registry under either HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER: \Software\Microsoft\Windows\CurrentVersion\Run.

If under LOCAL_MACHINE, the app will run for anyone who logs into the machine. If under CURRENT_USER, it will only run for the user that is currently logged in when you set the registry value up.


这篇关于当我的电脑开启时,C#应用程序会自动在后台启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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