1.ver命令不显示sp几 C:\>ver Microsoft Windows XP [Version 5.1.2600] C:\> 08: C:\Users\Administrator>ver Microsoft Windows [版本 6.1.7601] 2.systeminfo | findstr /B /C:"OS Name" /C:"OS Version" , 在XP, Vista and Windows 7 and on Server
API得到Windows版本 /** * Windows Version * https://msdn.microsoft.com/en-us/library/windows/desktop/dn481241(v=vs.85).aspx * In Windows 8.1 and Windows 10, the GetVersion and GetVersionEx functions have been deprecated. * In Windows 10, the VerifyVersion