Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get processor speed and total memory
Message
 
 
To
31/03/2009 20:42:01
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexico
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01392514
Message ID:
01392521
Views:
128
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform