Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get processor speed and total memory
Message
 
 
À
31/03/2009 20:42:01
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexique
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:
01392521
Vues:
130
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 		
>
>How can I get the processor speed in Mhz (or Ghz) and the total memory the system have installed?
>
>Thanks in advance
>
>Héctor L.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform