如果您使用CLI(或CMD)运行命令“winver”,您将获得构建版本...
编制。
是否可以使用Java获取Windows的构建(编译)版本?
修改 运行winver打开弹出窗口,我无法使用它。
答案 0 :(得分:1)
在命令提示符下使用此命令“SYSTEMINFO
”。
您将跟随这些详细信息
Host Name: SOMENAME
OS Name: Microsoft Windows 7 Enterprise
OS Version: 6.1.7601 Service Pack 1 Build 7601
OS Manufacturer: Microsoft Corporation
OS Configuration: Member Workstation
OS Build Type: Multiprocessor Free
Registered Owner: SOMENAME
Registered Organization: SOMENAME
Product ID: 55041-007-1931133-86361
Original Install Date: 3/11/2014, 9:41:37 AM
System Boot Time: 4/15/2014, 5:25:18 PM
System Manufacturer: Dell Inc.
System Model: OptiPlex 3010
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 58 Stepping 9 GenuineInt
答案 1 :(得分:0)
您也可以从JAVA运行CMD命令并获取您不喜欢其他方法的resultif。请看一下:How to execute cmd commands via Java