系统引导时如何运行c#控制台代码. [英] How to run a c# console code while system is booting.

查看:246
本文介绍了系统引导时如何运行c#控制台代码.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何以编程方式将引导过程转移到DOS而不是Windows桌面上,并连续执行c#控制台应用程序而不会在DOS提示符下停止.操作系统是Windows XP或Windows 7.0.

How can we programmaticaly divert our boot process to DOS instead of Windows Desktop and execute our c# console application consecutively without stopping on DOS prompt. And the Operating System is Windows XP or Windows 7.0.

推荐答案

看看注册表设置:

HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Windows NT \ CurrentVersion \ Winlogon

以及"Shell"键-Shell告诉Windows登录过程完成后该如何开始.


一种方法,它在Windows上配置自动登录",然后在完成登录过程后启动CMD.
Take a look at registry setting:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

And the key "Shell" - Shell tells Windows what to start when login process is done.


One way, it to configure "Auto login" on Windows, and then have CMD startup when login process is completed.


这篇关于系统引导时如何运行c#控制台代码.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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