China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-26 22:47
中国DOS联盟论坛 » 其它操作系统综合讨论区 » Commands to get hardware information in CMD! Asking you all? View 3,728 Replies 17
Original Poster Posted 2006-09-09 01:41 ·  中国 广东 东莞 电信
初级用户
Credits 102
Posts 43
Joined 2006-09-07 05:22
19-year member
UID 62023
Status Offline
Is there a command in CMD to get hardware information or a program that can be called via the CMD command line to get hardware information? For example: hard disk serial number or features, etc.

Please teach everyone!
Floor 2 Posted 2006-09-09 04:16 ·  中国 广东 东莞 电信
初级用户
Credits 102
Posts 43
Joined 2006-09-07 05:22
19-year member
UID 62023
Status Offline
No one pays attention to me, so I'll bump it. Is it that no one knows? I also think that's not very likely.
Floor 3 Posted 2006-09-09 04:35 ·  中国 湖南 常德 电信
银牌会员
★★★
Credits 1,384
Posts 709
Joined 2005-10-29 22:22
20-year member
UID 44271
Status Offline
I don't know about the call, but systeminfo can find some system information.
Floor 4 Posted 2006-09-09 05:08 ·  中国 广东 东莞 电信
初级用户
Credits 102
Posts 43
Joined 2006-09-07 05:22
19-year member
UID 62023
Status Offline
Thanks wl00560
Finally someone replied to me
Floor 5 Posted 2006-09-09 05:15 ·  中国 北京 联通
银牌会员
★★★
努力做坏人
Credits 1,185
Posts 438
Joined 2006-08-28 12:00
19-year member
UID 61449
From 北京
Status Offline
wmic computersystem list full
我今后在论坛的目标就是做个超级坏人!!!
Floor 6 Posted 2006-09-09 05:18 ·  中国 广东 东莞 电信
初级用户
Credits 102
Posts 43
Joined 2006-09-07 05:22
19-year member
UID 62023
Status Offline
systeminfo is not available in WIN2000. Copying it over doesn't work either.
Floor 7 Posted 2006-09-09 05:19 ·  中国 北京 联通
银牌会员
★★★
努力做坏人
Credits 1,185
Posts 438
Joined 2006-08-28 12:00
19-year member
UID 61449
From 北京
Status Offline
Yeah, only the XP system has it built-in, heh... WMIC is also like that. In this way, the most convenient way is to use third-party tools to solve it
我今后在论坛的目标就是做个超级坏人!!!
Floor 8 Posted 2006-09-09 05:34 ·  中国 广东 东莞 电信
初级用户
Credits 102
Posts 43
Joined 2006-09-07 05:22
19-year member
UID 62023
Status Offline
Originally posted by pip at 2006-9-9 05:19:
Yeah, only the XP system has it built-in, heh.........WMIC is also like that, so the most convenient way is to rely on third-party tools to solve it


Yeah, I don't know if there are other experts who know if there are any others...
Floor 9 Posted 2006-09-09 06:31 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 10 Posted 2006-09-09 10:12 ·  中国 山西 大同 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re hymm2008:

Indeed, as Brother electronixtar said, you can use debug to check the CMOS data mapped by the BIOS in memory, which should include all hardware information data that the BIOS can recognize. However, the calculation of the data address is relatively complicated, and it may not be applicable to all BIOS versions.

As for obtaining the feature sequence from the command line, you can consider using ipconfig /all to obtain the physical address of the local network card, or use dir to obtain the volume serial number of all visible disks on the local hard drive.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 11 Posted 2006-09-10 03:23 ·  中国 广东 东莞 电信
初级用户
Credits 102
Posts 43
Joined 2006-09-07 05:22
19-year member
UID 62023
Status Offline
Originally posted by willsort at 2006-9-9 10:12:
Re hymm2008:

Indeed, as brother electronixtar said, you can use debug to check the CMOS data mapped by the BIOS in memory, which should include all hardware information data that the BIOS can recognize. Well..



Ask the moderator, will the volume serial number of all visible disks on the local hard drive change after formatting? I think it will change. As for the NIC MIC code obtained by ipconfig /all, it can also be changed. Debug is a bit too complicated. Is there any way to obtain some unchanging characteristics of the hardware?
Floor 12 Posted 2006-09-10 06:23 ·  中国 广东 佛山 广东睿江科技有限公司
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
If the LZ (楼主) can state the purpose of obtaining the hard disk features, there might be a better way to work around it.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 13 Posted 2006-09-10 08:35 ·  中国 广东 东莞 电信
初级用户
Credits 102
Posts 43
Joined 2006-09-07 05:22
19-year member
UID 62023
Status Offline
Originally posted by namejm at 2006-9-10 06:23:
  If the owner of the post can state the purpose of obtaining the hard disk features, there may be a better alternative approach.


Because the programming needs to refer to relevant information in this regard. Brother namejm, do you have any good methods?
Floor 14 Posted 2006-09-10 09:39 ·  中国 广东 佛山 广东睿江科技有限公司
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
You said that the statement about referring to it for programming is too vague, which is difficult to answer. However, I also don't understand hardware or programming in other languages. Looking forward to experts coming to help.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 15 Posted 2006-09-18 09:09 ·  新加坡 腾讯云
初级用户
Credits 73
Posts 30
Joined 2006-09-18 08:35
19-year member
UID 62944
Status Offline
::Use WMI Alias to Get PC Main Information.bat
::Use WMI Alias to Get Main Information, Output as Web Page Format
::--------by MOBO[Mobo] at 2006-09-16:
wmic baseboard list brief /format:hform >MyPC.htm
wmic cpu list full /format:hform >>MyPC.htm
wmic bios list brief /format:hform >>MyPC.htm
Forum Jump: