windows 检查按哪个键从 USB 或 CD 启动?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3546634/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 15:05:31  来源:igfitidea点击:

Check which key to hit to boot from USB or CD?

windowsmenuusbbootcd

提问by Gulbahar

I need to check which key the user must hit to boot their PC from a USB key or a CD.

我需要检查用户必须按哪个键才能从 USB 密钥或 CD 启动他们的 PC。

Does it depend on the BIOS maker, or on the maker/model of the motherboard?

它取决于 BIOS 制造商,还是取决于主板的制造商/型号?

I was told about the nice, open-source Speccyto get some information on the hardware, but is there a library that I could use to get the same info from a (.Net) program and tell users precisely which key to hit on their very own computer?

有人告诉我有一个不错的开源Speccy可以获取有关硬件的一些信息,但是是否有一个库可以用来从 (.Net) 程序中获取相同的信息,并准确地告诉用户应该按哪个键?自己的电脑?

Thank you.

谢谢你。

回答by NibblyPig

There is no way you'll be able to find this out without building a comprehensive library of every single type of motherboard and manufacturer ever made, including any BIOS updates that might change it.

如果不为曾经制造的每种类型的主板和制造商构建一个综合库,包括任何可能改变它的 BIOS 更新,您就无法找到这一点。

You should just ask the user to follow on-screen instructions when their computer to boots to select the boot device, and maybe offer some likely suggestions ("It will ask you to press a function key...")

您应该只要求用户在他们的计算机启动时按照屏幕上的说明选择启动设备,并提供一些可能的建议(“它会要求您按功能键...”)

回答by leppie

At the stage you want to press enter or key, .NET will never be available.

在您想要按 Enter 或键的阶段,.NET 将永远不可用。