我正在尝试制作一个版本的Symantec Ghost启动盘,它将自动检查系统型号,并选择该型号所需的网卡驱动程序。除了获得实际的模型#之外,我已经做好了所有的工作。我需要能够得到它,即使硬盘驱动器已经完全擦除,因为这是从一个dos启动磁盘运行。
我试过几个命令-- wmic,systeminfo --所有这些命令在windows中都运行得很好,但我需要一个可以在dos模式下运行的命令,而这些命令显然不能。
关于实用程序和/或命令有什么想法可以帮我吗?
发布于 2012-09-10 19:43:13
您可以编写一小段代码并直接调用BIOS API。
有关(古老的)示例,请参阅http://www.cs.ubbcluj.ro/~forest/HtmlFolder/AC/NG/ng897c4.html:
INT 15h, C0h (192) Return System Configuration many
Reports the machine model number, sub-model number, BIOS revision
level, and other hardware-specific attributes.
On entry: AH C0h
Returns: Carry Set if error, else cleared
AH 0
ES:BX Pointer to a System Descriptor Table
--------------------------------------------------------------------------
Notes: This service is not available for the PC, PCjr, XT
dated 11/08/82, and the AT dated 1/10/84. Use the
return state of AH to determine if the service is
returning valid information.
System Descriptor Table
Description Length (byte) Value
Table length 1 8
System model number 1 ?
Sub-model number 1 ?
Bios Revision level 1 ?
Feature Information 1 ?
Reserved 4 0这就是wikipedia list of all calls,我非常确定在编译器(例如Turbo C等)中也会有一个函数来做这件事。
https://stackoverflow.com/questions/12350867
复制相似问题