me he encontrado con un problema
A través de system.Managment obtengo información del CPU de un PC. Pero en un PC no da nada, y evidentemente tiene CPU.
Cita:
pero no retorna nada ni da error. Dim cpuInfo As String = String.Empty
Dim temp As String = String.Empty
Dim mc As ManagementClass = New ManagementClass("Win32_Processor")
Dim moc As ManagementObjectCollection = mc.GetInstances()
For Each mo As ManagementObject In moc
If cpuInfo = String.Empty Then
cpuInfo = mo.Properties("ProcessorId").Value.ToString()
End If
Next
Return cpuInfo
Dim temp As String = String.Empty
Dim mc As ManagementClass = New ManagementClass("Win32_Processor")
Dim moc As ManagementObjectCollection = mc.GetInstances()
For Each mo As ManagementObject In moc
If cpuInfo = String.Empty Then
cpuInfo = mo.Properties("ProcessorId").Value.ToString()
End If
Next
Return cpuInfo
¿alguien sabe por qué?
saludos