Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get processor speed and total memory
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01392514
Message ID:
01392556
Vues:
74
>>See How do I retrieve CPU vendor info? Message #985440 and Amount of RAM? Message #1325638
>>
>>loWMI		= GETOBJECT('WinMgmts:')
>>loMemChips	= loWMI.ExecQuery('Select * from Win32_PhysicalMemory')
>>FOR EACH loMemChip IN loMemChips
>>	WITH loMemChip
>>		? "Speed, MGz", .Speed
>>		? "Capacity, GB", ROUND(VAL(.Capacity) /1024/1024,0)
>>	ENDWITH 
>>ENDFOR 		
>>
>>
>
>PMFJI,
>
>I ran your code on my PC and I get 2 chips 667 Mgz each. My computer property shows 1.99 GHz. Do you know why there's a difference?

You're confusing memory Speed and Capacity.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform