简体   繁体   English

使用Java获取Build Windows版本

[英]Get Build Windows version with Java

if you run with CLI (or CMD) the command "winver" you obtain build version... 如果使用CLI(或CMD)运行命令“ winver”,则将获得构建版本...

Compilation. 汇编。

Is it possible obtain the build (compilation) version of Windows with Java? 是否可以使用Java获得Windows的构建(编译)版本?

EDIT Running winver open popup windows, I can't use it. 编辑运行winver打开弹出窗口,我无法使用它。

Use this command " SYSTEMINFO " in command prompt. 在命令提示符下使用此命令“ SYSTEMINFO ”。

You will followed by these details 您将遵循这些详细信息

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

You can also run the CMD command from JAVA and obtain the resultif you do not prefer the other method. 如果您不喜欢其他方法,也可以从JAVA运行CMD命令并获得结果。 Please have a look at this: How to execute cmd commands via Java 请看一下: 如何通过Java执行cmd命令

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM