登录Windows之前运行应用程序 [英] run application before login to windows

查看:192
本文介绍了登录Windows之前运行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


登录Windows之前如何实现运行应用程序的解决方案?

:rose:


how to implement solution for run application before the login to windows?

:rose:

推荐答案

您需要开发其他类型的项目:Windows Service. Visual Studio提供了一个模板来开发这些模板.我不确定这是否是您需要的东西:这将是不可见的过程,可以使用远程处理,WCF等与其他程序进行通信.要调试此操作,您可能需要将一些信息记录到系统事件日志中,或进行附加调试器到已经运行的进程,与常规应用程序的调试相比要困难得多.

查看服务列表,运行:

You need to develop a different type of project: Windows Service. Visual Studio provides a template to develop those. I''m not sure if this is what you need: it will be invisible process which could communicate with other programs using remoting, WCF, etc. To debug this things, you may need to log some information to system event log, or attach debugger to already running process, way more difficult in comparison to debugging of a regular application.

Look at the list of services, run:

%SystemRoot%\system32\services.msc /s



它将显示系统小程序服务".您的可执行文件应作为列表中的另一项运行.单击任何项​​目上的上下文菜单.您可以在此处启动,停止服务等.选择属性".系统启动时会发生什么,取决于启动类型.如果是手动的,则需要转到此小程序并启动,在自动"中,可以根据需要在首次登录之前启动它.无论如何开始,如果您注销,它将保持运行.

祝你好运,

—SA



It will show system applet "Services". You executable should run as one more item in the list. Click context menu on any item. This is where you can Start, Stop the service, etc. Select "Properties". What happens on system startup, depends on startup type. If it is manual, you will need to go to this applet and Start it, in Automatic, it will be started before the first login, as you want. No matter how started, it will keep running if you log out.

Good luck,

—SA


这篇关于登录Windows之前运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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