Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
System info such as CPU speed
Message
From
03/05/2006 08:49:32
 
 
To
02/05/2006 17:26:13
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Miscellaneous
Thread ID:
01118584
Message ID:
01118739
Views:
22
Processor speed - as with almost all of the system info - can be determined using WMI.


oWMILocator = createobject("WbemScripting.SWbemLocator")
oWMI = oWMILocator.ConnectServer(".", "root\cimv2")
oProcessors = oWMI.InstancesOf("WIN32_Processor")
for each oProcessor in oProcessors
? "Processor speed: ", oProcessor.MaxClockSpeed
next
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform