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:
01392553
Vues:
58
>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?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform