有没有办法知道Windows7中的防病毒补丁更新,因为WMI不提供它们。我发现Windows Xp确实提供了版本号,但是有没有其他方法可以知道Windows 7的版本号
Windows XP
Namespace : SecurityCenter
AntiVirusProduct-Properties
companyName
displayName
enableOnAccessUIMd5Hash
enableOnAccessUIParameters
instanceGuid
onAccessScanningEnabled
pathToEnableOnAccessUI
pathToUpdateUI
productUptoDate
updateUIMd5Hash
updateUIParameters
versionNumber
Windows Vista and Windows 7
Namespace : SecurityCenter2
displayName
instanceGuid
pathToSignedProductExe
pathToSigned我需要开发一个应用程序,将为我提供C#中的防病毒补丁更新
发布于 2015-06-08 13:08:31
您可以尝试以下两种方法:
string x = Environment.OSVersion.ToString();或者另一种方法是运行cmd.exe来运行"ver“
string[] MyArguments = { "ver", ">text.txt"};
Process.Start("cmd.exe", String.Join(" ", MyArguments));然后打开文件text.txt解析版本信息。
https://stackoverflow.com/questions/30701345
复制相似问题